]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] fix missing ifdefs in syscall classes hookup for generic targets
authorAl Viro <viro@ftp.linux.org.uk>
Fri, 22 Sep 2006 23:10:18 +0000 (00:10 +0100)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sat, 23 Sep 2006 00:48:56 +0000 (17:48 -0700)
several targets have no ....at() family and m32r calls its only chown variant
chown32(), with __NR_chown being undefined.  creat(2) is also absent in some
targets.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/asm-generic/audit_change_attr.h
include/asm-generic/audit_dir_write.h
lib/audit.c

index cb05bf69745a5fbf12491b71aaa3e8b7cb56131c..50764550a60c388d858293e3395a68f1d87e4ffb 100644 (file)
@@ -1,16 +1,20 @@
 __NR_chmod,
 __NR_fchmod,
+#ifdef __NR_chown
 __NR_chown,
 __NR_fchown,
 __NR_lchown,
+#endif
 __NR_setxattr,
 __NR_lsetxattr,
 __NR_fsetxattr,
 __NR_removexattr,
 __NR_lremovexattr,
 __NR_fremovexattr,
+#ifdef __NR_fchownat
 __NR_fchownat,
 __NR_fchmodat,
+#endif
 #ifdef __NR_chown32
 __NR_chown32,
 __NR_fchown32,
index 161a7a58fbab51b2261ffcaa08c0986466d8846a..6621bd82cbe82319dc075c42f557bfb3c663555a 100644 (file)
@@ -1,14 +1,18 @@
 __NR_rename,
 __NR_mkdir,
 __NR_rmdir,
+#ifdef __NR_creat
 __NR_creat,
+#endif
 __NR_link,
 __NR_unlink,
 __NR_symlink,
 __NR_mknod,
+#ifdef __NR_mkdirat
 __NR_mkdirat,
 __NR_mknodat,
 __NR_unlinkat,
 __NR_renameat,
 __NR_linkat,
 __NR_symlinkat,
+#endif
index 8c21625ef93823ebf7f9a574236d71e009e0bb58..3b1289fadf06bc7594cc59334f4256eabadfa676 100644 (file)
@@ -28,8 +28,10 @@ int audit_classify_syscall(int abi, unsigned syscall)
        switch(syscall) {
        case __NR_open:
                return 2;
+#ifdef __NR_openat
        case __NR_openat:
                return 3;
+#endif
 #ifdef __NR_socketcall
        case __NR_socketcall:
                return 4;