Skip to content

Commit

Permalink
Allow the dup syscall, it is used on glibc systems when GeoIP lookups…
Browse files Browse the repository at this point in the history
… are enabled.
  • Loading branch information
fcambus committed Oct 23, 2019
1 parent ab8c474 commit fe0e621
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/seccomp.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ static struct sock_filter filter[] = {
BPF_STMT(BPF_RET+BPF_K, SECCOMP_RET_ALLOW),
BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, SYS_close, 0, 1),
BPF_STMT(BPF_RET+BPF_K, SECCOMP_RET_ALLOW),
BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, SYS_dup, 0, 1),
BPF_STMT(BPF_RET+BPF_K, SECCOMP_RET_ALLOW),
BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, SYS_exit_group, 0, 1),
BPF_STMT(BPF_RET+BPF_K, SECCOMP_RET_ALLOW),
BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, SYS_fcntl, 0, 1),
Expand Down

0 comments on commit fe0e621

Please sign in to comment.