diff options
author | Damien Miller <djm@mindrot.org> | 2015-09-10 10:57:41 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2015-09-10 10:57:41 +1000 |
commit | 26ad18247213ff72b4438abe7fc660c958810fa2 (patch) | |
tree | 719d4358a8556a5b31fcf0ff0e05398e4ed92cc9 /sandbox-seccomp-filter.c | |
parent | 5245bc1e6b129a10a928f73f11c3aa32656c44b4 (diff) |
allow getrandom syscall; from Felix von Leitner
Diffstat (limited to 'sandbox-seccomp-filter.c')
-rw-r--r-- | sandbox-seccomp-filter.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sandbox-seccomp-filter.c b/sandbox-seccomp-filter.c index 2462bcc88..d132e2646 100644 --- a/sandbox-seccomp-filter.c +++ b/sandbox-seccomp-filter.c | |||
@@ -147,6 +147,9 @@ static const struct sock_filter preauth_insns[] = { | |||
147 | #ifdef __NR_getpid | 147 | #ifdef __NR_getpid |
148 | SC_ALLOW(getpid), | 148 | SC_ALLOW(getpid), |
149 | #endif | 149 | #endif |
150 | #ifdef __NR_getrandom | ||
151 | SC_ALLOW(getrandom), | ||
152 | #endif | ||
150 | #ifdef __NR_gettimeofday | 153 | #ifdef __NR_gettimeofday |
151 | SC_ALLOW(gettimeofday), | 154 | SC_ALLOW(gettimeofday), |
152 | #endif | 155 | #endif |