projects
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aaf0da0
)
test-seccomp: accept ENOSYS from sysctl(2) too
author
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Tue, 22 Sep 2020 17:05:17 +0000
(19:05 +0200)
committer
Michael Biebl
<biebl@debian.org>
Tue, 24 Nov 2020 20:53:25 +0000
(20:53 +0000)
It seems that kernel 5.9 started returning that.
(cherry picked from commit
0af05e485a3a88f454c714901eb6109307dc893e
)
Gbp-Pq: Name test-seccomp-accept-ENOSYS-from-sysctl-2-too.patch
src/test/test-seccomp.c
patch
|
blob
|
history
diff --git
a/src/test/test-seccomp.c
b/src/test/test-seccomp.c
index 051b5a27c6c3fea51de257906d2b05b2bac6c28c..3df607234cbf6d97bb372f5d63f60cef6f9df9ce 100644
(file)
--- a/
src/test/test-seccomp.c
+++ b/
src/test/test-seccomp.c
@@
-316,7
+316,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);