Skip to content

Commit

Permalink
Merge pull request #1019 from pjbgf/add-act-log
Browse files Browse the repository at this point in the history
Add new seccomp action
  • Loading branch information
crosbymichael authored Oct 7, 2019
2 parents 52e2591 + 2b844a0 commit 19e92ca
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion config-linux.md
Original file line number Diff line number Diff line change
Expand Up @@ -604,13 +604,14 @@ The following parameters can be specified to set up seccomp:
* **`names`** *(array of strings, REQUIRED)* - the names of the syscalls.
`names` MUST contain at least one entry.
* **`action`** *(string, REQUIRED)* - the action for seccomp rules.
A valid list of constants as of libseccomp v2.3.2 is shown below.
A valid list of constants as of libseccomp v2.4.0 is shown below.

* `SCMP_ACT_KILL`
* `SCMP_ACT_TRAP`
* `SCMP_ACT_ERRNO`
* `SCMP_ACT_TRACE`
* `SCMP_ACT_ALLOW`
* `SCMP_ACT_LOG`

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

Expand Down
3 changes: 2 additions & 1 deletion schema/defs-linux.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
"SCMP_ACT_TRAP",
"SCMP_ACT_ERRNO",
"SCMP_ACT_TRACE",
"SCMP_ACT_ALLOW"
"SCMP_ACT_ALLOW",
"SCMP_ACT_LOG"
]
},
"SeccompFlag": {
Expand Down
1 change: 1 addition & 0 deletions specs-go/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -599,6 +599,7 @@ const (
ActErrno LinuxSeccompAction = "SCMP_ACT_ERRNO"
ActTrace LinuxSeccompAction = "SCMP_ACT_TRACE"
ActAllow LinuxSeccompAction = "SCMP_ACT_ALLOW"
ActLog LinuxSeccompAction = "SCMP_ACT_LOG"
)

// LinuxSeccompOperator used to match syscall arguments in Seccomp
Expand Down

0 comments on commit 19e92ca

Please sign in to comment.