X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=arch%2Fx86_64%2Fia32%2Faudit.c;h=92d7d0c8d93fb238dcf32831dcbfc5719078efd6;hb=4637a74cf2ac3a3696d385c8624d84de789d1bbe;hp=ab94f2e58cdd83ad98d7eb4f77666689ed64d779;hpb=361ea93cbff0e42cbc6a0f3c7a8238db9ed15648;p=powerpc.git diff --git a/arch/x86_64/ia32/audit.c b/arch/x86_64/ia32/audit.c index ab94f2e58c..92d7d0c8d9 100644 --- a/arch/x86_64/ia32/audit.c +++ b/arch/x86_64/ia32/audit.c @@ -9,3 +9,29 @@ unsigned ia32_chattr_class[] = { #include ~0U }; + +unsigned ia32_write_class[] = { +#include +~0U +}; + +unsigned ia32_read_class[] = { +#include +~0U +}; + +int ia32_classify_syscall(unsigned syscall) +{ + switch(syscall) { + case __NR_open: + return 2; + case __NR_openat: + return 3; + case __NR_socketcall: + return 4; + case __NR_execve: + return 5; + default: + return 1; + } +}