diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2017-05-04 23:10:30 -0400 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2017-05-07 20:01:04 -0400 |
commit | 511ceb1f8ddc4d78f49dee511ab849e9259e8d91 (patch) | |
tree | ddaa963ef70e4df85229bcc85d7115340f5fcd95 /src/shared/seccomp-util.h | |
parent | 4278d1f5310f5acb4c6a6788233625234edb5145 (diff) | |
download | systemd-511ceb1f8ddc4d78f49dee511ab849e9259e8d91.tar.gz |
seccomp: assume clone() arg order is known on all architectures
While adding the defines for arm, I realized that we have pretty much all
known architectures covered, so SECCOMP_RESTRICT_NAMESPACES_BROKEN is not
necessary anymore. clone(2) is adamant that the order of the first two
arguments is only reversed on s390/s390x. So let's simplify things and remove
the #if.
Diffstat (limited to 'src/shared/seccomp-util.h')
-rw-r--r-- | src/shared/seccomp-util.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/shared/seccomp-util.h b/src/shared/seccomp-util.h index 7eeab29c3b..2563fcd38a 100644 --- a/src/shared/seccomp-util.h +++ b/src/shared/seccomp-util.h @@ -84,13 +84,6 @@ int seccomp_memory_deny_write_execute(void); #define SECCOMP_RESTRICT_ADDRESS_FAMILIES_BROKEN 0 #endif -/* we don't know the right order of the clone() parameters except for these archs, for now */ -#if defined(__x86_64__) || defined(__i386__) || defined(__s390x__) || defined(__s390__) || defined(__powerpc64__) || defined(__mips__) -#define SECCOMP_RESTRICT_NAMESPACES_BROKEN 0 -#else -#define SECCOMP_RESTRICT_NAMESPACES_BROKEN 1 -#endif - extern const uint32_t seccomp_local_archs[]; #define SECCOMP_FOREACH_LOCAL_ARCH(arch) \ |