mirror of
https://github.com/rsmarples/dhcpcd.git
synced 2024-11-23 18:14:09 +08:00
privsep: Allow dup3 on Linux
It seems some libc will really call dup3 rather than dup2. Another fix for #260.
This commit is contained in:
parent
1064814667
commit
4bb0c8ff02
@ -313,6 +313,9 @@ static struct sock_filter ps_seccomp_filter[] = {
|
||||
#ifdef __NR_dup2
|
||||
SECCOMP_ALLOW(__NR_dup2), // daemonising dups stderr to stdin(/dev/null)
|
||||
#endif
|
||||
#ifdef __NR_dup3
|
||||
SECCOMP_ALLOW(__NR_dup3),
|
||||
#endif
|
||||
#ifdef __NR_epoll_ctl
|
||||
SECCOMP_ALLOW(__NR_epoll_ctl),
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user