Skip to content

Commit 19e92ca

Browse files
Merge pull request #1019 from pjbgf/add-act-log
Add new seccomp action
2 parents 52e2591 + 2b844a0 commit 19e92ca

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

config-linux.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,13 +604,14 @@ The following parameters can be specified to set up seccomp:
604604
* **`names`** *(array of strings, REQUIRED)* - the names of the syscalls.
605605
`names` MUST contain at least one entry.
606606
* **`action`** *(string, REQUIRED)* - the action for seccomp rules.
607-
A valid list of constants as of libseccomp v2.3.2 is shown below.
607+
A valid list of constants as of libseccomp v2.4.0 is shown below.
608608

609609
* `SCMP_ACT_KILL`
610610
* `SCMP_ACT_TRAP`
611611
* `SCMP_ACT_ERRNO`
612612
* `SCMP_ACT_TRACE`
613613
* `SCMP_ACT_ALLOW`
614+
* `SCMP_ACT_LOG`
614615

615616
* **`args`** *(array of objects, OPTIONAL)* - the specific syscall in seccomp.
616617

schema/defs-linux.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@
3939
"SCMP_ACT_TRAP",
4040
"SCMP_ACT_ERRNO",
4141
"SCMP_ACT_TRACE",
42-
"SCMP_ACT_ALLOW"
42+
"SCMP_ACT_ALLOW",
43+
"SCMP_ACT_LOG"
4344
]
4445
},
4546
"SeccompFlag": {

specs-go/config.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -599,6 +599,7 @@ const (
599599
ActErrno LinuxSeccompAction = "SCMP_ACT_ERRNO"
600600
ActTrace LinuxSeccompAction = "SCMP_ACT_TRACE"
601601
ActAllow LinuxSeccompAction = "SCMP_ACT_ALLOW"
602+
ActLog LinuxSeccompAction = "SCMP_ACT_LOG"
602603
)
603604

604605
// LinuxSeccompOperator used to match syscall arguments in Seccomp

0 commit comments

Comments
 (0)