Signed-off-by: Paul Moore <[email protected]>
---
src/python/libseccomp.pxd | 2 ++
src/python/seccomp.pyx | 4 ++++
tests/16-sim-arch_basic.py | 2 ++
tests/23-sim-arch_all_basic.py | 2 ++
4 files changed, 10 insertions(+)
diff --git a/src/python/libseccomp.pxd b/src/python/libseccomp.pxd
index a0d4720..1c3921c 100644
--- a/src/python/libseccomp.pxd
+++ b/src/python/libseccomp.pxd
@@ -31,6 +31,8 @@ cdef extern from "seccomp.h":
SCMP_ARCH_X86_64
SCMP_ARCH_X32
SCMP_ARCH_ARM
+ SCMP_ARCH_MIPS
+ SCMP_ARCH_MIPSEL
cdef enum scmp_filter_attr:
SCMP_FLTATR_ACT_DEFAULT
diff --git a/src/python/seccomp.pyx b/src/python/seccomp.pyx
index 4082bad..702a520 100644
--- a/src/python/seccomp.pyx
+++ b/src/python/seccomp.pyx
@@ -140,6 +140,8 @@ cdef class Arch:
X86_64 - 64-bit x86
X32 - 64-bit x86 using the x32 ABI
ARM - ARM
+ MIPS - MIPS
+ MIPSEL - MIPS little endian
"""
NATIVE = libseccomp.SCMP_ARCH_NATIVE
@@ -147,6 +149,8 @@ cdef class Arch:
X86_64 = libseccomp.SCMP_ARCH_X86_64
X32 = libseccomp.SCMP_ARCH_X32
ARM = libseccomp.SCMP_ARCH_ARM
+ MIPS = libseccomp.SCMP_ARCH_MIPS
+ MIPSEL = libseccomp.SCMP_ARCH_MIPSEL
cdef class Attr:
""" Python object representing the SyscallFilter attributes.
diff --git a/tests/16-sim-arch_basic.py b/tests/16-sim-arch_basic.py
index d29a5ff..21272eb 100755
--- a/tests/16-sim-arch_basic.py
+++ b/tests/16-sim-arch_basic.py
@@ -38,6 +38,8 @@ def test(args):
f.add_arch(Arch.X32)
if not f.exist_arch(Arch.ARM):
f.add_arch(Arch.ARM)
+ if not f.exist_arch(Arch.MIPSEL):
+ f.add_arch(Arch.MIPSEL)
f.add_rule(ALLOW, "read", Arg(0, EQ, sys.stdin.fileno()))
f.add_rule(ALLOW, "write", Arg(0, EQ, sys.stdout.fileno()))
f.add_rule(ALLOW, "write", Arg(0, EQ, sys.stderr.fileno()))
diff --git a/tests/23-sim-arch_all_basic.py b/tests/23-sim-arch_all_basic.py
index 2674636..eb3f478 100755
--- a/tests/23-sim-arch_all_basic.py
+++ b/tests/23-sim-arch_all_basic.py
@@ -38,6 +38,8 @@ def test(args):
f.add_arch(Arch.X32)
if not f.exist_arch(Arch.ARM):
f.add_arch(Arch.ARM)
+ if not f.exist_arch(Arch.MIPSEL):
+ f.add_arch(Arch.MIPSEL)
f.add_rule(ALLOW, "read", Arg(0, EQ, sys.stdin.fileno()))
f.add_rule(ALLOW, "write", Arg(0, EQ, sys.stdout.fileno()))
f.add_rule(ALLOW, "write", Arg(0, EQ, sys.stderr.fileno()))
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
libseccomp-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libseccomp-discuss