summaryrefslogtreecommitdiffstats
path: root/lib/audit.c
diff options
context:
space:
mode:
authorAl Viro <viro@ftp.linux.org.uk>2006-09-23 00:10:18 +0100
committerLinus Torvalds <torvalds@g5.osdl.org>2006-09-22 17:48:56 -0700
commita83fbf635992442edf6aa3252e4008d4a08edf12 (patch)
treedd31c01247cea278a77dcb88732d19c92b9bca77 /lib/audit.c
parentdb392219c5f572610645696e3672f6ea38783a65 (diff)
downloadop-kernel-dev-a83fbf635992442edf6aa3252e4008d4a08edf12.zip
op-kernel-dev-a83fbf635992442edf6aa3252e4008d4a08edf12.tar.gz
[PATCH] fix missing ifdefs in syscall classes hookup for generic targets
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>
Diffstat (limited to 'lib/audit.c')
-rw-r--r--lib/audit.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/audit.c b/lib/audit.c
index 8c21625..3b1289f 100644
--- a/lib/audit.c
+++ b/lib/audit.c
@@ -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;
OpenPOWER on IntegriCloud