mirror of
https://github.com/systemd/systemd.git
synced 2025-03-09 12:58:26 +03:00
test-seccomp: accept ENOSYS from sysctl(2) too
It seems that kernel 5.9 started returning that.
This commit is contained in:
parent
9309a23b95
commit
0af05e485a
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user