diff options
author | Paul Moore <pmoore@redhat.com> | 2014-09-26 12:06:18 -0400 |
---|---|---|
committer | Paul Moore <pmoore@redhat.com> | 2015-02-06 17:50:15 -0500 |
commit | daed219e5df2e85f994b89a55f7271849367a7f1 (patch) | |
tree | d7431f24d6cf61f9ba171d969dbf1a8b52ce2689 /src/python | |
parent | 6d7b7c8e27b0cb2ba0470ff02917d1faba9430ba (diff) | |
download | libseccomp-daed219e5df2e85f994b89a55f7271849367a7f1.tar.gz |
arch: add the basic initial support for ppc64 to the arch-dependent code
Signed-off-by: Paul Moore <pmoore@redhat.com>
Diffstat (limited to 'src/python')
-rw-r--r-- | src/python/libseccomp.pxd | 2 | ||||
-rw-r--r-- | src/python/seccomp.pyx | 7 |
2 files changed, 9 insertions, 0 deletions
diff --git a/src/python/libseccomp.pxd b/src/python/libseccomp.pxd index 2b50f3f..a546550 100644 --- a/src/python/libseccomp.pxd +++ b/src/python/libseccomp.pxd @@ -38,6 +38,8 @@ cdef extern from "seccomp.h": SCMP_ARCH_MIPSEL SCMP_ARCH_MIPSEL64 SCMP_ARCH_MIPSEL64N32 + SCMP_ARCH_PPC64 + SCMP_ARCH_PPC64LE cdef enum scmp_filter_attr: SCMP_FLTATR_ACT_DEFAULT diff --git a/src/python/seccomp.pyx b/src/python/seccomp.pyx index d2f7c90..f30a0b6 100644 --- a/src/python/seccomp.pyx +++ b/src/python/seccomp.pyx @@ -147,6 +147,7 @@ cdef class Arch: MIPSEL - MIPS little endian O32 ABI MIPSEL64 - MIPS little endian 64-bit ABI MIPSEL64N32 - MIPS little endian N32 ABI + PPC64 - 64-bit PowerPC """ cdef int _token @@ -163,6 +164,8 @@ cdef class Arch: MIPSEL = libseccomp.SCMP_ARCH_MIPSEL MIPSEL64 = libseccomp.SCMP_ARCH_MIPSEL64 MIPSEL64N32 = libseccomp.SCMP_ARCH_MIPSEL64N32 + PPC64 = libseccomp.SCMP_ARCH_PPC64 + PPC64 = libseccomp.SCMP_ARCH_PPC64LE def __cinit__(self, arch=libseccomp.SCMP_ARCH_NATIVE): """ Initialize the architecture object. @@ -198,6 +201,10 @@ cdef class Arch: self._token = libseccomp.SCMP_ARCH_MIPSEL64 elif arch == libseccomp.SCMP_ARCH_MIPSEL64N32: self._token = libseccomp.SCMP_ARCH_MIPSEL64N32 + elif arch == libseccomp.SCMP_ARCH_PPC64: + self._token = libseccomp.SCMP_ARCH_PPC64 + elif arch == libseccomp.SCMP_ARCH_PPC64LE: + self._token = libseccomp.SCMP_ARCH_PPC64LE else: self._token = 0; elif isinstance(arch, basestring): |