projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
05b4d3b
)
seccomp: make sure getrlimit() is among the default permitted syscalls
author
Lennart Poettering
<lennart@poettering.net>
Wed, 17 Aug 2016 15:53:25 +0000
(17:53 +0200)
committer
Lennart 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
patch
|
blob
|
history
diff --git
a/src/shared/seccomp-util.c
b/src/shared/seccomp-util.c
index
8656d11
..
b549426
100644
(file)
--- a/
src/shared/seccomp-util.c
+++ b/
src/shared/seccomp-util.c
@@
-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"
}, {