From aaeb012fe4700cb808562c2daf7ccc464e7f18cf Mon Sep 17 00:00:00 2001 From: Chris Metcalf Date: Mon, 2 May 2011 16:52:19 -0400 Subject: audit: support the "standard" 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 Signed-off-by: Chris Metcalf --- lib/audit.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib') 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) int audit_classify_syscall(int abi, unsigned syscall) { switch(syscall) { +#ifdef __NR_open case __NR_open: return 2; +#endif #ifdef __NR_openat case __NR_openat: return 3; -- cgit v1.2.3-18-g5258