diff options
author | Tycho Andersen <tycho@tycho.ws> | 2019-03-05 10:20:24 -0700 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2019-04-29 19:59:10 -0400 |
commit | 11667b4885a6206f29fdeeaabf00c0fe2a2cb508 (patch) | |
tree | a65096e6867bc93ce955333d489601ba95969e59 /src/python | |
parent | e7c97e31ce79b5d25b6b630b1ccd42b354040c21 (diff) | |
download | libseccomp-11667b4885a6206f29fdeeaabf00c0fe2a2cb508.tar.gz |
api: add support for the SPEC_ALLOW flag
Signed-off-by: Tycho Andersen <tycho@tycho.ws>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'src/python')
-rw-r--r-- | src/python/libseccomp.pxd | 1 | ||||
-rw-r--r-- | src/python/seccomp.pyx | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/python/libseccomp.pxd b/src/python/libseccomp.pxd index 49d0be4..1293208 100644 --- a/src/python/libseccomp.pxd +++ b/src/python/libseccomp.pxd @@ -58,6 +58,7 @@ cdef extern from "seccomp.h": SCMP_FLTATR_CTL_TSYNC SCMP_FLTATR_API_TSKIP SCMP_FLTATR_CTL_LOG + SCMP_FLTATR_SPEC_ALLOW cdef enum scmp_compare: SCMP_CMP_NE diff --git a/src/python/seccomp.pyx b/src/python/seccomp.pyx index 771b9c3..27211ad 100644 --- a/src/python/seccomp.pyx +++ b/src/python/seccomp.pyx @@ -308,6 +308,7 @@ cdef class Attr: CTL_TSYNC = libseccomp.SCMP_FLTATR_CTL_TSYNC API_TSKIP = libseccomp.SCMP_FLTATR_API_TSKIP CTL_LOG = libseccomp.SCMP_FLTATR_CTL_LOG + SPEC_ALLOW = libseccomp.SCMP_FLTATR_SPEC_ALLOW cdef class Arg: """ Python object representing a SyscallFilter syscall argument. |