]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/powerpc/kernel/compat_audit.c
arch: Remove unnecessary inclusions of asm/semaphore.h
[linux-2.6-omap-h63xx.git] / arch / powerpc / kernel / compat_audit.c
index ddc0a64896a24e886aa12ebfdf14b26125746906..108ff14e21223a0dcd91e7359356e2a602acba0a 100644 (file)
@@ -20,3 +20,24 @@ unsigned ppc32_read_class[] = {
 #include <asm-generic/audit_read.h>
 ~0U
 };
+
+unsigned ppc32_signal_class[] = {
+#include <asm-generic/audit_signal.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;
+       }
+}