Allow getrandom() on compliant Linux systems.

Thanks for this patch!

Fixes https://github.com/kristapsdz/kcgi/pull/63
This commit is contained in:
kristapsdz committed 2019-07-05 12:30:59 +00:00
1 parent 1651accb0c
commit d514565fb5
1 file changed
+3
+3
View File
@@ -154,6 +154,9 @@ static const struct sock_filter preauth_work[] = {
offsetof(struct seccomp_data, nr)),
SC_DENY(open, EACCES),
SC_ALLOW(getpid),
#ifdef __NR_getrandom
SC_ALLOW(getrandom),
#endif
SC_ALLOW(gettimeofday),
SC_ALLOW(clock_gettime),
#ifdef __NR_time /* not defined on EABI ARM */