]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
malloc() uses getrandom now
authorCristian Rodríguez <crodriguez@owncloud.com>
Fri, 9 Jul 2021 21:19:05 +0000 (17:19 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 6 Aug 2021 14:43:07 +0000 (16:43 +0200)
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 1253d18af7449814bc882506b0fe3770311b3bc0)
(cherry picked from commit 381149c6e265a4e44cfe2bbba6a3cae2782874bd9)

src/shared/seccomp-util.c

index b880b8ddabfa820c01ee6fe8bd4b6067912abbee..1b6177b41274c76c276c7fae8efed4450f5bd135 100644 (file)
@@ -309,6 +309,7 @@ const SyscallFilterSet syscall_filter_sets[_SYSCALL_FILTER_SET_MAX] = {
                 "getpgrp\0"
                 "getpid\0"
                 "getppid\0"
+                "getrandom\0"
                 "getresgid\0"
                 "getresgid32\0"
                 "getresuid\0"