From 7965c4bdc16d47f2f94313e288a6b7445876f680 Mon Sep 17 00:00:00 2001 From: Tomas Mudrunka Date: Mon, 10 Feb 2014 23:10:01 +0100 Subject: [PATCH] SECCOMP exit() --- c/seccomp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/c/seccomp.c b/c/seccomp.c index 527daea..c939c04 100644 --- a/c/seccomp.c +++ b/c/seccomp.c @@ -10,12 +10,14 @@ * */ +#include #include #include #include #include #define DISPLAY(msg) (syscall( SYS_write, 2, msg, strlen(msg) )) +#define exit(status) { syscall( SYS_exit, status ); abort(); } int main() { system("echo before"); @@ -25,4 +27,5 @@ int main() { //fflush(NULL); system("echo after"); + exit(0); } -- 2.30.2