Paul Moore
2014-08-27 13:55:57 UTC
Reported-by: AKASHI Takahiro <***@linaro.org>
Signed-off-by: Paul Moore <***@redhat.com>
---
include/seccomp.h.in | 3 +++
tools/util.h | 4 ++++
2 files changed, 7 insertions(+)
diff --git a/include/seccomp.h.in b/include/seccomp.h.in
index 2a9d4a9..99a0bc5 100644
--- a/include/seccomp.h.in
+++ b/include/seccomp.h.in
@@ -125,6 +125,9 @@ struct scmp_arg_cmp {
/**
* The MIPS architecture tokens
*/
+#ifndef __AUDIT_ARCH_CONVENTION_MIPS64_N32
+#define __AUDIT_ARCH_CONVENTION_MIPS64_N32 0x20000000
+#endif
#define SCMP_ARCH_MIPS AUDIT_ARCH_MIPS
#define SCMP_ARCH_MIPS64 AUDIT_ARCH_MIPS64
#ifndef AUDIT_ARCH_MIPS64N32
diff --git a/tools/util.h b/tools/util.h
index 2903769..6564472 100644
--- a/tools/util.h
+++ b/tools/util.h
@@ -24,6 +24,10 @@
#include <inttypes.h>
+#ifndef __AUDIT_ARCH_CONVENTION_MIPS64_N32
+#define __AUDIT_ARCH_CONVENTION_MIPS64_N32 0x20000000
+#endif
+
#ifndef AUDIT_ARCH_MIPS64N32
/* MIPS64N32 support was merged in 3.15 */
#define AUDIT_ARCH_MIPS64N32 (EM_MIPS|__AUDIT_ARCH_64BIT|\
Signed-off-by: Paul Moore <***@redhat.com>
---
include/seccomp.h.in | 3 +++
tools/util.h | 4 ++++
2 files changed, 7 insertions(+)
diff --git a/include/seccomp.h.in b/include/seccomp.h.in
index 2a9d4a9..99a0bc5 100644
--- a/include/seccomp.h.in
+++ b/include/seccomp.h.in
@@ -125,6 +125,9 @@ struct scmp_arg_cmp {
/**
* The MIPS architecture tokens
*/
+#ifndef __AUDIT_ARCH_CONVENTION_MIPS64_N32
+#define __AUDIT_ARCH_CONVENTION_MIPS64_N32 0x20000000
+#endif
#define SCMP_ARCH_MIPS AUDIT_ARCH_MIPS
#define SCMP_ARCH_MIPS64 AUDIT_ARCH_MIPS64
#ifndef AUDIT_ARCH_MIPS64N32
diff --git a/tools/util.h b/tools/util.h
index 2903769..6564472 100644
--- a/tools/util.h
+++ b/tools/util.h
@@ -24,6 +24,10 @@
#include <inttypes.h>
+#ifndef __AUDIT_ARCH_CONVENTION_MIPS64_N32
+#define __AUDIT_ARCH_CONVENTION_MIPS64_N32 0x20000000
+#endif
+
#ifndef AUDIT_ARCH_MIPS64N32
/* MIPS64N32 support was merged in 3.15 */
#define AUDIT_ARCH_MIPS64N32 (EM_MIPS|__AUDIT_ARCH_64BIT|\