Skip to content

Commit

Permalink
seccomp: add get_mempolicy, mbind, set_mempolicy, with CAP_SYS_NICE
Browse files Browse the repository at this point in the history
This aligns the profile with docker's profile, which added this in
moby/moby@47dfff6

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit bbb8d34)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
  • Loading branch information
thaJeztah committed Jan 24, 2023
1 parent d22919a commit 7037f53
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions contrib/seccomp/seccomp_default.go
Original file line number Diff line number Diff line change
Expand Up @@ -655,6 +655,16 @@ func DefaultProfile(sp *specs.Spec) *specs.LinuxSeccomp {
Action: specs.ActAllow,
Args: []specs.LinuxSeccompArg{},
})
case "CAP_SYS_NICE":
s.Syscalls = append(s.Syscalls, specs.LinuxSyscall{
Names: []string{
"get_mempolicy",
"mbind",
"set_mempolicy",
},
Action: specs.ActAllow,
Args: []specs.LinuxSeccompArg{},
})
case "CAP_SYSLOG":
s.Syscalls = append(s.Syscalls, specs.LinuxSyscall{
Names: []string{"syslog"},
Expand Down

0 comments on commit 7037f53

Please sign in to comment.