aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-08-24 17:20:21 -0400
committerMike Frysinger <vapier@gentoo.org>2015-08-24 17:20:59 -0400
commitbcb6683c56d9646e12881a6b59bc740e6004e663 (patch)
tree0b1eadc432d4dca58866545625386f71ff7dec98 /porting.h
parentbuild: add plumbing for building w/debug code (diff)
downloadpax-utils-bcb6683c56d9646e12881a6b59bc740e6004e663.tar.gz
pax-utils-bcb6683c56d9646e12881a6b59bc740e6004e663.tar.bz2
pax-utils-bcb6683c56d9646e12881a6b59bc740e6004e663.zip
security: add a debug handler for seccomp
If a bad syscall is hit, it can be hard to track down. Add a debug mode that people can enable to get useful error messages showing the failure. URL: https://bugs.gentoo.org/558482
Diffstat (limited to 'porting.h')
-rw-r--r--porting.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/porting.h b/porting.h
index c93f0f8..1107b4e 100644
--- a/porting.h
+++ b/porting.h
@@ -30,6 +30,7 @@
#include <pwd.h>
#include <regex.h>
#include <sched.h>
+#include <signal.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
@@ -217,4 +218,6 @@
# define O_CLOEXEC 0
#endif
+#define __unused__ __attribute__((__unused__))
+
#endif /* _PORTING_H */