aboutsummaryrefslogtreecommitdiff
path: root/sandbox.c
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2021-01-20 16:22:35 +0000
committerOmar Polo <op@omarpolo.com>2021-01-20 16:22:35 +0000
commit61f8d630c81fb92d771cf26496b25b5157c776ca (patch)
tree7b2e589576dae9c79d8894eb18c476052aadfbc4 /sandbox.c
parentf2b3a5193f96ab48bae4463654c67af706a18cdd (diff)
fmt
Diffstat (limited to 'sandbox.c')
-rw-r--r--sandbox.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sandbox.c b/sandbox.c
index 437755f..4e53b43 100644
--- a/sandbox.c
+++ b/sandbox.c
@@ -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))),