Skip to content

Commit

Permalink
privsep: Allow getrandom sysctl for newer glibc
Browse files Browse the repository at this point in the history
Fixes #120
  • Loading branch information
rsmarples committed Aug 26, 2022
1 parent e307ec2 commit 645c32d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/privsep-linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,9 @@ static struct sock_filter ps_seccomp_filter[] = {
#ifdef __NR_getpid
SECCOMP_ALLOW(__NR_getpid),
#endif
#ifdef __NR_getrandom
SECCOMP_ALLOW(__NR_getrandom),
#endif
#ifdef __NR_getsockopt
/* For route socket overflow */
SECCOMP_ALLOW_ARG(__NR_getsockopt, 1, SOL_SOCKET),
Expand Down

0 comments on commit 645c32d

Please sign in to comment.