summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCristian Rodríguez <crodriguez@owncloud.com>2021-07-09 17:19:05 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-08-06 16:42:23 +0200
commit61149c6e265a4e44cfe2bbba6a3cae2782874bd9 (patch)
tree0f5c3a8ac04f769270a4e8f9d5c9ca292bc9a40d
parent7f143dada7c0c9e230d4037043e213268c9b85f0 (diff)
downloadsystemd-61149c6e265a4e44cfe2bbba6a3cae2782874bd9.tar.gz
malloc() uses getrandom now
glibc master uses getrandom in malloc since https://sourceware.org/git/?p=glibc.git;a=commit;h=fc859c304898a5ec72e0ba5269ed136ed0ea10e1 , getrandom should be in the default set so to avoid all non trivial programs to fallback to a PRNG. (cherry picked from commit 14f4b1b568907350d023d1429c1aa4aaa8925f22) (cherry picked from commit 765c366274db3ff841da237769f2b20a4ec3a045)
-rw-r--r--src/shared/seccomp-util.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shared/seccomp-util.c b/src/shared/seccomp-util.c
index e0f88aec73..cad0af89f2 100644
--- a/src/shared/seccomp-util.c
+++ b/src/shared/seccomp-util.c
@@ -310,6 +310,7 @@ const SyscallFilterSet syscall_filter_sets[_SYSCALL_FILTER_SET_MAX] = {
"getpgrp\0"
"getpid\0"
"getppid\0"
+ "getrandom\0"
"getresgid\0"
"getresgid32\0"
"getresuid\0"