Skip to content

Commit

Permalink
Add available LinuxSeccompFlags
Browse files Browse the repository at this point in the history
We now list the available `LinuxSeccompFlag` values as part of the
runtime spec.

Signed-off-by: Sascha Grunert <[email protected]>
Co-authored-by: Alban Crequy <[email protected]>
Signed-off-by: Sascha Grunert <[email protected]>
  • Loading branch information
saschagrunert and alban committed Feb 23, 2022
1 parent 8958f93 commit e78a3c3
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions specs-go/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,19 @@ type Arch string
// LinuxSeccompFlag is a flag to pass to seccomp(2).
type LinuxSeccompFlag string

const (
// LinuxSeccompFlagLog is a seccomp flag to request all returned
// actions except SECCOMP_RET_ALLOW to be logged. An administrator may
// override this filter flag by preventing specific actions from being
// logged via the /proc/sys/kernel/seccomp/actions_logged file. (since
// Linux 4.14)
LinuxSeccompFlagLog LinuxSeccompFlag = "SECCOMP_FILTER_FLAG_LOG"

// LinuxSeccompFlagSpecAllow can be used to disable Speculative Store
// Bypass mitigation. (since Linux 4.17)
LinuxSeccompFlagSpecAllow LinuxSeccompFlag = "SECCOMP_FILTER_FLAG_SPEC_ALLOW"
)

// Additional architectures permitted to be used for system calls
// By default only the native architecture of the kernel is permitted
const (
Expand Down

0 comments on commit e78a3c3

Please sign in to comment.