seccomp: fix fallback definitions of some SECCOMP_* constants

* seccomp.c (SECCOMP_SET_MODE_STRICT, SECCOMP_SET_MODE_FILTER,
SECCOMP_FILTER_FLAG_TSYNC): Remove fallback definitions.
* xlat/seccomp_filter_flags.in: Add default value.
* xlat/seccomp_ops.in: Add default values.
This commit is contained in:
Дмитрий Левин 2015-02-19 20:30:01 +00:00
parent fb585db562
commit 0a59454fb3
3 changed files with 3 additions and 14 deletions

View File

@ -30,18 +30,7 @@
#ifdef HAVE_LINUX_SECCOMP_H
# include <linux/seccomp.h>
#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

View File

@ -1 +1 @@
SECCOMP_FILTER_FLAG_TSYNC
SECCOMP_FILTER_FLAG_TSYNC 1

View File

@ -1,2 +1,2 @@
SECCOMP_SET_MODE_STRICT
SECCOMP_SET_MODE_FILTER
SECCOMP_SET_MODE_STRICT 0
SECCOMP_SET_MODE_FILTER 1