diff options
author | Mike Frysinger <vapier@gentoo.org> | 2015-08-24 17:20:21 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2015-08-24 17:20:59 -0400 |
commit | bcb6683c56d9646e12881a6b59bc740e6004e663 (patch) | |
tree | 0b1eadc432d4dca58866545625386f71ff7dec98 /porting.h | |
parent | build: add plumbing for building w/debug code (diff) | |
download | pax-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.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 */ |