Skip to content

Commit 47dfff6

Browse files
committed
Whitelist syscalls linked to CAP_SYS_NICE in default seccomp profile
* Update profile to match docker documentation at https://docs.docker.com/engine/security/seccomp/ Signed-off-by: Nicolas V Castet <[email protected]>
1 parent e259323 commit 47dfff6

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

profiles/seccomp/default.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -746,6 +746,22 @@
746746
]
747747
},
748748
"excludes": {}
749+
},
750+
{
751+
"names": [
752+
"get_mempolicy",
753+
"mbind",
754+
"set_mempolicy"
755+
],
756+
"action": "SCMP_ACT_ALLOW",
757+
"args": [],
758+
"comment": "",
759+
"includes": {
760+
"caps": [
761+
"CAP_SYS_NICE"
762+
]
763+
},
764+
"excludes": {}
749765
}
750766
]
751767
}

profiles/seccomp/seccomp_default.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -630,6 +630,18 @@ func DefaultProfile() *types.Seccomp {
630630
Caps: []string{"CAP_SYS_TTY_CONFIG"},
631631
},
632632
},
633+
{
634+
Names: []string{
635+
"get_mempolicy",
636+
"mbind",
637+
"set_mempolicy",
638+
},
639+
Action: types.ActAllow,
640+
Args: []*types.Arg{},
641+
Includes: types.Filter{
642+
Caps: []string{"CAP_SYS_NICE"},
643+
},
644+
},
633645
}
634646

635647
return &types.Seccomp{

0 commit comments

Comments
 (0)