mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-07 06:52:07 +00:00
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>
This commit is contained in:
parent
d07bd86d82
commit
aaeb012fe4
5 changed files with 27 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue