This commit is contained in:
Omar Polo 2021-01-20 16:22:35 +00:00
parent f2b3a5193f
commit 61f8d630c8
1 changed files with 1 additions and 0 deletions

View File

@ -176,6 +176,7 @@ sandbox()
BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, F_SETFL, 0, 1),
BPF_STMT(BPF_RET | BPF_K, SECCOMP_RET_ALLOW),
BPF_STMT(BPF_RET | BPF_K, SC_FAIL),
/* re-load the syscall number */
BPF_STMT(BPF_LD | BPF_W | BPF_ABS,
(offsetof(struct seccomp_data, nr))),