diff --git a/seccomp.c b/seccomp.c index 8adaac53..9939c117 100644 --- a/seccomp.c +++ b/seccomp.c @@ -30,18 +30,7 @@ #ifdef HAVE_LINUX_SECCOMP_H # include #endif - -#ifndef SECCOMP_SET_MODE_STRICT -# define SECCOMP_SET_MODE_STRICT 1 -#endif -#ifndef SECCOMP_SET_MODE_FILTER -# define SECCOMP_SET_MODE_FILTER 1 -#endif #include "xlat/seccomp_ops.h" - -#ifndef SECCOMP_FILTER_FLAG_TSYNC -# define SECCOMP_FILTER_FLAG_TSYNC 1 -#endif #include "xlat/seccomp_filter_flags.h" #ifdef HAVE_LINUX_FILTER_H diff --git a/xlat/seccomp_filter_flags.in b/xlat/seccomp_filter_flags.in index 34e6847c..83482d00 100644 --- a/xlat/seccomp_filter_flags.in +++ b/xlat/seccomp_filter_flags.in @@ -1 +1 @@ -SECCOMP_FILTER_FLAG_TSYNC +SECCOMP_FILTER_FLAG_TSYNC 1 diff --git a/xlat/seccomp_ops.in b/xlat/seccomp_ops.in index a28b2489..c3320af7 100644 --- a/xlat/seccomp_ops.in +++ b/xlat/seccomp_ops.in @@ -1,2 +1,2 @@ -SECCOMP_SET_MODE_STRICT -SECCOMP_SET_MODE_FILTER +SECCOMP_SET_MODE_STRICT 0 +SECCOMP_SET_MODE_FILTER 1