Skip to content

Commit

Permalink
privsep: Allow dup2 with SECCOMP
Browse files Browse the repository at this point in the history
  • Loading branch information
rsmarples committed Oct 19, 2023
1 parent ac4a70d commit fd2e62e
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 @@ -310,6 +310,9 @@ static struct sock_filter ps_seccomp_filter[] = {
#ifdef __NR_close
SECCOMP_ALLOW(__NR_close),
#endif
#ifdef __NR_dup2
SECCOMP_ALLOW(__NR_dup2), // daemonising dups stderr to stdin(/dev/null)
#endif
#ifdef __NR_epoll_ctl
SECCOMP_ALLOW(__NR_epoll_ctl),
#endif
Expand Down

0 comments on commit fd2e62e

Please sign in to comment.