Skip to content

Commit 41714d0

Browse files
author
zhouhao
committed
config-linux.md: fix seccomp
Signed-off-by: zhouhao <zhouhao@cn.fujitsu.com>
1 parent 71afb41 commit 41714d0

File tree

1 file changed

+31
-16
lines changed

1 file changed

+31
-16
lines changed

config-linux.md

Lines changed: 31 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,14 @@ For more information about Seccomp, see [Seccomp][seccomp] kernel documentation.
498498
The actions, architectures, and operators are strings that match the definitions in seccomp.h from [libseccomp][] and are translated to corresponding values.
499499
A valid list of constants as of libseccomp v2.3.2 is shown below.
500500

501-
Architecture Constants
501+
**`seccomp`** (object, OPTIONAL)
502+
503+
The following parameters can be specified to setup seccomp:
504+
505+
* **`defaultAction`** *(string, REQUIRED)* - the default action for seccomp.
506+
507+
* **`architectures`** *(array, OPTIONAL)* - the architecture used for system calls. Implementations MUST support at least the following values:
508+
502509
* `SCMP_ARCH_X86`
503510
* `SCMP_ARCH_X86_64`
504511
* `SCMP_ARCH_X32`
@@ -518,21 +525,29 @@ Architecture Constants
518525
* `SCMP_ARCH_PARISC`
519526
* `SCMP_ARCH_PARISC64`
520527

521-
Action Constants:
522-
* `SCMP_ACT_KILL`
523-
* `SCMP_ACT_TRAP`
524-
* `SCMP_ACT_ERRNO`
525-
* `SCMP_ACT_TRACE`
526-
* `SCMP_ACT_ALLOW`
527-
528-
Operator Constants:
529-
* `SCMP_CMP_NE`
530-
* `SCMP_CMP_LT`
531-
* `SCMP_CMP_LE`
532-
* `SCMP_CMP_EQ`
533-
* `SCMP_CMP_GE`
534-
* `SCMP_CMP_GT`
535-
* `SCMP_CMP_MASKED_EQ`
528+
* **`syscalls`** *(object, REQUIRED)* - match a syscall in seccomp.
529+
530+
* **`names`** *(array of strings, REQUIRED)* - the name of the syscall.
531+
532+
* **`action`** *(string, REQUIRED)* - the action for seccomp rules. Implementations MUST support at least the following values:
533+
534+
* `SCMP_ACT_KILL`
535+
* `SCMP_ACT_TRAP`
536+
* `SCMP_ACT_ERRNO`
537+
* `SCMP_ACT_TRACE`
538+
* `SCMP_ACT_ALLOW`
539+
540+
* **`args`** *(object, OPTIONAL)* - the specific syscall in seccomp.
541+
542+
* **`op`** *(string, REQUIRED)* - the operator for syscall arguments in seccomp. Implementations MUST support at least the following values:
543+
544+
* `SCMP_CMP_NE`
545+
* `SCMP_CMP_LT`
546+
* `SCMP_CMP_LE`
547+
* `SCMP_CMP_EQ`
548+
* `SCMP_CMP_GE`
549+
* `SCMP_CMP_GT`
550+
* `SCMP_CMP_MASKED_EQ`
536551

537552
###### Example
538553

0 commit comments

Comments
 (0)