Skip to content

Commit d22919a

Browse files
committed
seccomp: seccomp: add syscalls related to PKU in default policy
Add pkey_alloc(2), pkey_free(2) and pkey_mprotect(2) in seccomp default profile. pkey_alloc(2), pkey_free(2) and pkey_mprotect(2) can only configure the calling process's own memory, so they are existing "safe for everyone" syscalls. Signed-off-by: Sebastiaan van Stijn <[email protected]> (cherry picked from commit 19e8479) Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent cf13b64 commit d22919a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

contrib/seccomp/seccomp_default.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,9 @@ func DefaultProfile(sp *specs.Spec) *specs.LinuxSeccomp {
249249
"pidfd_send_signal",
250250
"pipe",
251251
"pipe2",
252+
"pkey_alloc",
253+
"pkey_free",
254+
"pkey_mprotect",
252255
"poll",
253256
"ppoll",
254257
"ppoll_time64",

0 commit comments

Comments
 (0)