From: Zbigniew Jędrzejewski-Szmek Date: Tue, 22 Sep 2020 17:05:17 +0000 (+0200) Subject: test-seccomp: accept ENOSYS from sysctl(2) too X-Git-Tag: v247-rc1~173^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F17132%2Fhead;p=thirdparty%2Fsystemd.git test-seccomp: accept ENOSYS from sysctl(2) too It seems that kernel 5.9 started returning that. --- diff --git a/src/test/test-seccomp.c b/src/test/test-seccomp.c index 697130e70c5..8831d87fe78 100644 --- a/src/test/test-seccomp.c +++ b/src/test/test-seccomp.c @@ -318,7 +318,7 @@ static void test_protect_sysctl(void) { if (pid == 0) { #if defined __NR__sysctl && __NR__sysctl >= 0 assert_se(syscall(__NR__sysctl, NULL) < 0); - assert_se(errno == EFAULT); + assert_se(IN_SET(errno, EFAULT, ENOSYS)); #endif assert_se(seccomp_protect_sysctl() >= 0);