Skip to content

Commit

Permalink
Merge pull request #107 from Duncaen/seccomp-i386
Browse files Browse the repository at this point in the history
allow some missing syscalls for i386 with glibc
  • Loading branch information
kristapsdz committed Nov 20, 2023
2 parents 3dff486 + 3f41e39 commit a456dec
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sandbox-seccomp-filter.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ static const struct sock_filter preauth_ctrl[] = {
#endif
#ifdef __NR_accept /* not defined for __i386__ (linux) */
SC_ALLOW(accept),
#endif
#ifdef __NR_socketcall /* used for accept on __i386__ (linux) */
SC_ALLOW(socketcall),
#endif
SC_ALLOW(fcntl),
#ifdef __NR_fcntl64 /* only noted on arm */
Expand Down Expand Up @@ -190,6 +193,9 @@ static const struct sock_filter preauth_work[] = {
SC_ALLOW(fstat), /* for kutil_openlog logging */
#ifdef __NR_newfstatat
SC_ALLOW(newfstatat), /* for kutil_openlog logging */
#endif
#ifdef __NR_statx
SC_ALLOW(statx), /* for kutil_openlog logging */
#endif
SC_ALLOW(write),
SC_ALLOW(writev),
Expand Down

0 comments on commit a456dec

Please sign in to comment.