Skip to content

Commit

Permalink
fix seccomp upper limit
Browse files Browse the repository at this point in the history
  • Loading branch information
Hendrik Muhs committed May 30, 2018
1 parent 3925113 commit a82a739
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/seccomp/CSystemCallFilter_Linux.cc
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const struct sock_filter FILTER[] = {
// Load the system call number into accumulator
BPF_STMT(BPF_LD | BPF_W | BPF_ABS, SECCOMP_DATA_NR_OFFSET),
// Only applies to X86_64 arch. Jump to disallow for calls using the x32 ABI
BPF_JUMP(BPF_JMP | BPF_JGT | BPF_K, UPPER_NR_LIMIT, 34, 0),
BPF_JUMP(BPF_JMP | BPF_JGT | BPF_K, UPPER_NR_LIMIT, 35, 0),
// If any sys call filters are added or removed then the jump
// destination for each statement including the one above must
// be updated accordingly
Expand Down

0 comments on commit a82a739

Please sign in to comment.