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:
parent
fb585db562
commit
0a59454fb3
11
seccomp.c
11
seccomp.c
@ -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
|
||||
|
@ -1 +1 @@
|
||||
SECCOMP_FILTER_FLAG_TSYNC
|
||||
SECCOMP_FILTER_FLAG_TSYNC 1
|
||||
|
@ -1,2 +1,2 @@
|
||||
SECCOMP_SET_MODE_STRICT
|
||||
SECCOMP_SET_MODE_FILTER
|
||||
SECCOMP_SET_MODE_STRICT 0
|
||||
SECCOMP_SET_MODE_FILTER 1
|
||||
|
Loading…
Reference in New Issue
Block a user