[PATCH] audit: AUDIT_PERM support
[linux-2.6-block.git] / arch / i386 / kernel / audit.c
index 28bbc46f75c2696f6ecc6ed73e1f1a5c53c294eb..3b97cff4154991699f241a96f7a3ef6f840bac30 100644 (file)
@@ -23,6 +23,22 @@ static unsigned chattr_class[] = {
 ~0U
 };
 
+int audit_classify_syscall(int abi, 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 0;
+       }
+}
+
 static int __init audit_classes_init(void)
 {
        audit_register_class(AUDIT_CLASS_WRITE, write_class);