]> err.no Git - linux-2.6/blobdiff - arch/powerpc/kernel/compat_audit.c
[PATCH] Add comments to the PDA structure to annotate offsets
[linux-2.6] / arch / powerpc / kernel / compat_audit.c
index dbbb8b81f1d90c6cbc894282ec14199a4b4ee70d..640d4bb29321b5b20a074e5491aeaada69b021e2 100644 (file)
@@ -10,3 +10,29 @@ unsigned ppc32_chattr_class[] = {
 #include <asm-generic/audit_change_attr.h>
 ~0U
 };
+
+unsigned ppc32_write_class[] = {
+#include <asm-generic/audit_write.h>
+~0U
+};
+
+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;
+       }
+}