summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAl Viro <viro@ftp.linux.org.uk>2006-10-29 13:03:49 +0100
committerChris Wright <chrisw@sous-sol.org>2006-11-03 17:33:48 -0800
commit75c8aaf22867285b8c67dce0cf117fe1a0425f74 (patch)
tree383d01a08995291a1eb661de81291139baf09ce5 /lib
parent0e1ce4461d940d122302593898632e96b72a7e4c (diff)
[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> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/audit.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/audit.c b/lib/audit.c
index 8c21625ef938..3b1289fadf06 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;