[PATCH] audit: AUDIT_PERM support
[linux-2.6-block.git] / arch / powerpc / kernel / compat_audit.c
index ddc0a64896a24e886aa12ebfdf14b26125746906..640d4bb29321b5b20a074e5491aeaada69b021e2 100644 (file)
@@ -20,3 +20,19 @@ unsigned ppc32_read_class[] = {
 #include <asm-generic/audit_read.h>
 ~0U
 };
+
+int ppc32_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;
+       }
+}