mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
[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 <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
db392219c5
commit
a83fbf6359
3 changed files with 10 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue