aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'security.c')
-rw-r--r--security.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/security.c b/security.c
index af06dcb..8776a80 100644
--- a/security.c
+++ b/security.c
@@ -44,11 +44,14 @@ static int pax_seccomp_rules_add(scmp_filter_ctx ctx, int syscalls[], size_t num
static void
pax_seccomp_sigal(__unused__ int signo, siginfo_t *info, __unused__ void *context)
{
+#ifdef si_syscall
warn("seccomp violated: syscall %i", info->si_syscall);
fflush(stderr);
-#ifdef si_syscall
warn(" syscall = %s",
seccomp_syscall_resolve_num_arch(seccomp_arch_native(), info->si_syscall));
+ fflush(stderr);
+#else
+ warn("seccomp violated: syscall unknown (no si_syscall)");
#endif
kill(getpid(), SIGSYS);
_exit(1);