From ec964dfa30dd550c40025bc958dd91dfa1e2d3dc Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Mon, 22 Feb 2021 16:47:37 +0100 Subject: [PATCH] seccomp: expect error with invalid errnoRet Signed-off-by: Giuseppe Scrivano --- config-linux.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/config-linux.md b/config-linux.md index e7a5decad..3c9d77f5a 100644 --- a/config-linux.md +++ b/config-linux.md @@ -645,8 +645,9 @@ The following parameters can be specified to set up seccomp: * `SCMP_ACT_LOG` * **`errnoRet`** *(uint, OPTIONAL)* - the errno return code to use. - Some actions like `SCMP_ACT_ERRNO` and `SCMP_ACT_TRACE` allow to specify the errno - code to return. If not specified its default value is `EPERM`. + Some actions like `SCMP_ACT_ERRNO` and `SCMP_ACT_TRACE` allow to specify the errno code to return. + When the action doesn't support an errno, the runtime MUST print and error and fail. + If not specified its default value is `EPERM`. * **`args`** *(array of objects, OPTIONAL)* - the specific syscall in seccomp. Each entry has the following structure: