diff options
author | 2019-02-05 21:49:33 +0100 | |
---|---|---|
committer | 2019-02-05 21:49:35 +0100 | |
commit | 373d91148d714f7c2fae95aeb6fcb850a215163c (patch) | |
tree | 5e443de90c095047bfcf5c5aa53ca2aa4efbc838 | |
parent | simplify yes/no option parsing (diff) | |
download | firejail-373d91148d714f7c2fae95aeb6fcb850a215163c.tar.gz firejail-373d91148d714f7c2fae95aeb6fcb850a215163c.tar.zst firejail-373d91148d714f7c2fae95aeb6fcb850a215163c.zip |
use correct struct member for offset
Fixes: #2381
-rw-r--r-- | src/fsec-print/print.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fsec-print/print.c b/src/fsec-print/print.c index 1042f0c3e..1756d60dc 100644 --- a/src/fsec-print/print.c +++ b/src/fsec-print/print.c | |||
@@ -206,7 +206,7 @@ static void bpf_decode_args(const struct sock_filter *bpf, unsigned int line) { | |||
206 | printf("data.syscall-number"); | 206 | printf("data.syscall-number"); |
207 | syscall_loaded = 1; | 207 | syscall_loaded = 1; |
208 | } | 208 | } |
209 | else if (bpf->k == offsetof(struct seccomp_data, nr)) | 209 | else if (bpf->k == offsetof(struct seccomp_data, instruction_pointer)) |
210 | printf("data.instruction_pointer"); | 210 | printf("data.instruction_pointer"); |
211 | else { | 211 | else { |
212 | int index = bpf->k - offsetof(struct seccomp_data, args); | 212 | int index = bpf->k - offsetof(struct seccomp_data, args); |