aboutsummaryrefslogtreecommitdiffstats
path: root/src/tools/extract_seccomp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/extract_seccomp.c')
-rw-r--r--src/tools/extract_seccomp.c11
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