summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Paris <eparis@redhat.com>2014-03-19 19:04:52 -0400
committerEric Paris <eparis@redhat.com>2014-09-23 16:20:03 -0400
commit0451623ad780a478b11c29736dae506e0059966a (patch)
treea645e0e0a474a26a2c2b4a7a6592e23010e629e5
parent4b4665e13cef9ba66f3ce53548e6bf49530de2e5 (diff)
downloadop-kernel-dev-0451623ad780a478b11c29736dae506e0059966a.zip
op-kernel-dev-0451623ad780a478b11c29736dae506e0059966a.tar.gz
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
-rw-r--r--arch/alpha/include/asm/syscall.h11
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 0000000..88d28eb
--- /dev/null
+++ b/arch/alpha/include/asm/syscall.h
@@ -0,0 +1,11 @@
+#ifndef _ASM_ALPHA_SYSCALL_H
+#define _ASM_ALPHA_SYSCALL_H
+
+#include <uapi/linux/audit.h>
+
+static inline int syscall_get_arch(void)
+{
+ return AUDIT_ARCH_ALPHA;
+}
+
+#endif /* _ASM_ALPHA_SYSCALL_H */
OpenPOWER on IntegriCloud