Commit 7d653ad4 authored by Helge Deller's avatar Helge Deller

parisc: Fold 32-bit compat code into audit_classify_syscall()

No need to keep an extra 32-bit audit_classify_syscall() function.
Signed-off-by: default avatarHelge Deller <deller@gmx.de>
parent 226b8ab8
...@@ -40,11 +40,6 @@ int audit_classify_arch(int arch) ...@@ -40,11 +40,6 @@ int audit_classify_arch(int arch)
int audit_classify_syscall(int abi, unsigned syscall) int audit_classify_syscall(int abi, unsigned syscall)
{ {
#ifdef CONFIG_COMPAT
extern int parisc32_classify_syscall(unsigned);
if (abi == AUDIT_ARCH_PARISC)
return parisc32_classify_syscall(syscall);
#endif
switch (syscall) { switch (syscall) {
case __NR_open: case __NR_open:
return AUDITSC_OPEN; return AUDITSC_OPEN;
...@@ -55,6 +50,10 @@ int audit_classify_syscall(int abi, unsigned syscall) ...@@ -55,6 +50,10 @@ int audit_classify_syscall(int abi, unsigned syscall)
case __NR_openat2: case __NR_openat2:
return AUDITSC_OPENAT2; return AUDITSC_OPENAT2;
default: default:
#ifdef CONFIG_COMPAT
if (abi == AUDIT_ARCH_PARISC)
return AUDITSC_COMPAT;
#endif
return AUDITSC_NATIVE; return AUDITSC_NATIVE;
} }
} }
......
...@@ -26,19 +26,3 @@ unsigned int parisc32_signal_class[] = { ...@@ -26,19 +26,3 @@ unsigned int parisc32_signal_class[] = {
#include <asm-generic/audit_signal.h> #include <asm-generic/audit_signal.h>
~0U ~0U
}; };
int parisc32_classify_syscall(unsigned syscall)
{
switch (syscall) {
case __NR_open:
return AUDITSC_OPEN;
case __NR_openat:
return AUDITSC_OPENAT;
case __NR_execve:
return AUDITSC_EXECVE;
case __NR_openat2:
return AUDITSC_OPENAT2;
default:
return AUDITSC_COMPAT;
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment