Skip to content

Commit

Permalink
add __NR_recv and __NR_send which are needed on some platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
cjdelisle committed Oct 3, 2016
1 parent 67b66bf commit 5ea0101
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions util/Seccomp.c
Expand Up @@ -267,6 +267,14 @@ static struct sock_fprog* mkFilter(struct Allocator* alloc, struct Except* eh)
IFEQ(__NR_time, success),
#endif

// NetPlatform_linux.c send recv
#ifdef __NR_send
IFEQ(__NR_send, success),
#endif
#ifdef __NR_recv
IFEQ(__NR_recv, success),
#endif

// malloc()
IFEQ(__NR_brk, success),

Expand Down

0 comments on commit 5ea0101

Please sign in to comment.