aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChris Metcalf2011-05-02 15:52:19 -0500
committerChris Metcalf2011-05-04 13:41:28 -0500
commitaaeb012fe4700cb808562c2daf7ccc464e7f18cf (patch)
treec46c547b8cc287acad328c2c937485349a0df456 /lib
parentd07bd86d82622247dba8cc29974d3860f857ea33 (diff)
downloadkernel-common-aaeb012fe4700cb808562c2daf7ccc464e7f18cf.tar.gz
kernel-common-aaeb012fe4700cb808562c2daf7ccc464e7f18cf.tar.xz
kernel-common-aaeb012fe4700cb808562c2daf7ccc464e7f18cf.zip
audit: support the "standard" <asm-generic/unistd.h>
Many of the syscalls mentioned in the audit code are not present for architectures that implement only the "standard" set of Linux syscalls (e.g. openat, but not open, etc.). This change adds proper #ifdefs for all those syscalls. Acked-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
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 8e7dc1c63aa..76bbed4a20e 100644
--- a/lib/audit.c
+++ b/lib/audit.c
@@ -36,8 +36,10 @@ int audit_classify_arch(int arch)
36int audit_classify_syscall(int abi, unsigned syscall) 36int audit_classify_syscall(int abi, unsigned syscall)
37{ 37{
38 switch(syscall) { 38 switch(syscall) {
39#ifdef __NR_open
39 case __NR_open: 40 case __NR_open:
40 return 2; 41 return 2;
42#endif
41#ifdef __NR_openat 43#ifdef __NR_openat
42 case __NR_openat: 44 case __NR_openat:
43 return 3; 45 return 3;