mirror of
https://github.com/bdnugget/kcgi.git
synced 2026-11-07 05:47:27 +00:00
Allow getrandom() on compliant Linux systems.
Thanks for this patch! Fixes https://github.com/kristapsdz/kcgi/pull/63
This commit is contained in:
1 parent
1651accb0c
commit
d514565fb5
1 file changed
+3
@@ -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 */
|
||||
|
||||
Reference in new issue
Block a user