X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;f=c%2Fseccomp.c;h=c939c04052f193ccb7dee987d0dc61100fdf8cd2;hb=7e869036d17bdd1d629aff2733acdcb090b84068;hp=527daea30c9dac9c946b5810e96b8c8bae232b43;hpb=e9d5f91fb1c7e6ff546e3e6275f64323641657bb;p=mirrors%2FPrograms.git 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); }