diff options
author | Eric Paris <eparis@redhat.com> | 2014-03-19 19:04:52 -0400 |
---|---|---|
committer | Eric Paris <eparis@redhat.com> | 2014-09-23 16:20:03 -0400 |
commit | 0451623ad780a478b11c29736dae506e0059966a (patch) | |
tree | a645e0e0a474a26a2c2b4a7a6592e23010e629e5 /arch | |
parent | 4b4665e13cef9ba66f3ce53548e6bf49530de2e5 (diff) |
Alpha: define syscall_get_arch()
Since Alpha supports syscall audit it now needs to have a syscall.h
which implements syscall_get_arch() rather than hard coding this value
into audit_syscall_entry().
Based-on-patch-by: Richard Briggs <rgb@redhat.com>
Signed-off-by: Eric Paris <eparis@redhat.com>
Cc: linux-alpha@vger.kernel.org
Diffstat (limited to 'arch')
-rw-r--r-- | arch/alpha/include/asm/syscall.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/alpha/include/asm/syscall.h b/arch/alpha/include/asm/syscall.h new file mode 100644 index 000000000000..88d28eb2a566 --- /dev/null +++ b/arch/alpha/include/asm/syscall.h | |||
@@ -0,0 +1,11 @@ | |||
1 | #ifndef _ASM_ALPHA_SYSCALL_H | ||
2 | #define _ASM_ALPHA_SYSCALL_H | ||
3 | |||
4 | #include <uapi/linux/audit.h> | ||
5 | |||
6 | static inline int syscall_get_arch(void) | ||
7 | { | ||
8 | return AUDIT_ARCH_ALPHA; | ||
9 | } | ||
10 | |||
11 | #endif /* _ASM_ALPHA_SYSCALL_H */ | ||