From: Tomas Mudrunka Date: Mon, 10 Feb 2014 22:10:01 +0000 (+0100) Subject: SECCOMP exit() X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;h=7965c4bdc16d47f2f94313e288a6b7445876f680;p=mirrors%2FPrograms.git SECCOMP exit() --- 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); }