diff options
author | 2023-02-24 20:50:25 -0500 | |
---|---|---|
committer | 2023-02-24 20:50:25 -0500 | |
commit | 71b98ed838910173ec56c977f4892fd9c53da339 (patch) | |
tree | 16b90ac1333137ffc4df4f50e152ade351c458c8 /src/tools/extract_seccomp.c | |
parent | merges (diff) | |
parent | Merge pull request #5646 from NetSysFire/parsecd (diff) | |
download | firejail-71b98ed838910173ec56c977f4892fd9c53da339.tar.gz firejail-71b98ed838910173ec56c977f4892fd9c53da339.tar.zst firejail-71b98ed838910173ec56c977f4892fd9c53da339.zip |
Merge branch 'master' of ssh://github.com/netblue30/firejail
Diffstat (limited to 'src/tools/extract_seccomp.c')
-rw-r--r-- | src/tools/extract_seccomp.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/tools/extract_seccomp.c b/src/tools/extract_seccomp.c index 0482dfd88..69e20317a 100644 --- a/src/tools/extract_seccomp.c +++ b/src/tools/extract_seccomp.c | |||
@@ -31,10 +31,13 @@ | |||
31 | #include <linux/filter.h> | 31 | #include <linux/filter.h> |
32 | 32 | ||
33 | #define MAXBUF 1024 | 33 | #define MAXBUF 1024 |
34 | #define errExit(msg) { char msgout[256]; \ | 34 | #define errExit(msg) \ |
35 | snprintf(msgout, 256, "Error %d: %s", __LINE__, (msg)); \ | 35 | do { \ |
36 | perror(msgout); \ | 36 | char msgout[256]; \ |
37 | exit(1); } | 37 | snprintf(msgout, 256, "Error %d: %s", __LINE__, (msg)); \ |
38 | perror(msgout); \ | ||
39 | exit(1); \ | ||
40 | } while (0); | ||
38 | 41 | ||
39 | // dump all seccomp filters of a process | 42 | // dump all seccomp filters of a process |
40 | // for further analysis with fsec-print | 43 | // for further analysis with fsec-print |