Skip to content

Commit 19e8479

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]>
1 parent ff91434 commit 19e8479

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

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)