From dc66939d67716b6def7112c8b4fe4412f65d5ab6 Mon Sep 17 00:00:00 2001 From: Jagger Date: Thu, 5 May 2016 02:00:41 +0200 Subject: [PATCH] Have some syscall to test seccomp-bpf --- sandbox.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sandbox.c b/sandbox.c index 6ff6d99..998dfec 100644 --- a/sandbox.c +++ b/sandbox.c @@ -52,7 +52,7 @@ static bool sandboxPrepareAndCommit(void) #define __NR_syslog_32 103 #define __NR_uselib_32 86 JEQ32(__NR_syslog_32, ERRNO(ENOENT)), - JEQ32(__NR_uselib_32, ERRNO(ENOENT)), + JEQ32(__NR_uselib_32, KILL), ALLOW, /* X86_64 */ @@ -61,7 +61,7 @@ static bool sandboxPrepareAndCommit(void) #define __NR_syslog_64 103 #define __NR_uselib_64 134 JEQ32(__NR_syslog_64, ERRNO(ENOENT)), - JEQ32(__NR_uselib_64, ERRNO(ENOENT)), + JEQ32(__NR_uselib_64, KILL), ALLOW, };