seccomp: make sure getrlimit() is among the default permitted syscalls
authorLennart Poettering <lennart@poettering.net>
Wed, 17 Aug 2016 15:53:25 +0000 (17:53 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 22 Aug 2016 12:17:23 +0000 (14:17 +0200)
A lot of basic code wants to know the stack size, and it is safe if they do,
hence let's permit getrlimit() (but not setrlimit()) by default.

See: #3970

src/shared/seccomp-util.c

index 8656d11..b549426 100644 (file)
@@ -127,6 +127,7 @@ const SystemCallFilterSet syscall_filter_sets[] = {
                 "execve\0"
                 "exit\0"
                 "exit_group\0"
+                "getrlimit\0"      /* make sure processes can query stack size and such */
                 "rt_sigreturn\0"
                 "sigreturn\0"
         }, {