diff options
| author | Evgeny Vereshchagin <evvers@ya.ru> | 2017-02-09 03:31:22 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-02-09 03:31:22 +0300 |
| commit | 52a4aafb4dd178afae5ce8ceadd852233cac10f3 (patch) | |
| tree | f1a0176cacb9f730e9d774d5467c391a18231996 /src/test/test-seccomp.c | |
| parent | 2026e39b2d2f9a2951cdf72be53fde1f2dac4c63 (diff) | |
| parent | b8076e3d06dd93664969c774444b74be69d15d23 (diff) | |
Merge pull request #5270 from poettering/seccomp-namespace-fix
swap seccomp filter params on s390
Diffstat (limited to 'src/test/test-seccomp.c')
| -rw-r--r-- | src/test/test-seccomp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/test-seccomp.c b/src/test/test-seccomp.c index 3659238810..34a1275162 100644 --- a/src/test/test-seccomp.c +++ b/src/test/test-seccomp.c @@ -158,6 +158,8 @@ static void test_restrict_namespace(void) { assert_se(streq(s, "cgroup ipc net mnt pid user uts")); assert_se(namespace_flag_from_string_many(s, &ul) == 0 && ul == NAMESPACE_FLAGS_ALL); +#if SECCOMP_RESTRICT_NAMESPACES_BROKEN == 0 + if (!is_seccomp_available()) return; if (geteuid() != 0) @@ -216,6 +218,7 @@ static void test_restrict_namespace(void) { } assert_se(wait_for_terminate_and_warn("nsseccomp", pid, true) == EXIT_SUCCESS); +#endif } static void test_protect_sysctl(void) { |
