]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
allow getrandom syscall; from Felix von Leitner
authorDamien Miller <djm@mindrot.org>
Thu, 10 Sep 2015 00:57:41 +0000 (10:57 +1000)
committerDamien Miller <djm@mindrot.org>
Thu, 10 Sep 2015 00:57:41 +0000 (10:57 +1000)
sandbox-seccomp-filter.c

index 2462bcc88f321cdd8605c16d8e5262deb8e2c07e..d132e26460dedb340bb07a4b1585b0d7eeb45bc3 100644 (file)
@@ -147,6 +147,9 @@ static const struct sock_filter preauth_insns[] = {
 #ifdef __NR_getpid
        SC_ALLOW(getpid),
 #endif
+#ifdef __NR_getrandom
+       SC_ALLOW(getrandom),
+#endif
 #ifdef __NR_gettimeofday
        SC_ALLOW(gettimeofday),
 #endif