Skip to content

Commit ec964df

Browse files
committed
seccomp: expect error with invalid errnoRet
Signed-off-by: Giuseppe Scrivano <[email protected]>
1 parent d7a6d08 commit ec964df

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

config-linux.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -645,8 +645,9 @@ The following parameters can be specified to set up seccomp:
645645
* `SCMP_ACT_LOG`
646646

647647
* **`errnoRet`** *(uint, OPTIONAL)* - the errno return code to use.
648-
Some actions like `SCMP_ACT_ERRNO` and `SCMP_ACT_TRACE` allow to specify the errno
649-
code to return. If not specified its default value is `EPERM`.
648+
Some actions like `SCMP_ACT_ERRNO` and `SCMP_ACT_TRACE` allow to specify the errno code to return.
649+
When the action doesn't support an errno, the runtime MUST print and error and fail.
650+
If not specified its default value is `EPERM`.
650651

651652
* **`args`** *(array of objects, OPTIONAL)* - the specific syscall in seccomp.
652653
Each entry has the following structure:

0 commit comments

Comments
 (0)