public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [tests/selinux] pr775-checkpolicy-revdeps: kernel/selinux-testsuite: exclude userfaultfd on old kernels
@ 2026-09-11 13:18 Ondrej Mosnacek
0 siblings, 0 replies; only message in thread
From: Ondrej Mosnacek @ 2026-09-11 13:18 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : tests/selinux
Branch : pr775-checkpolicy-revdeps
Commit : 60c10ba7e13ead1dbe74ad3c31f387f54527c3ac
Author : Ondrej Mosnacek <omosnace@redhat.com>
Date : 2021-03-09T15:40:01+01:00
Stats : +5/-0 in 1 file(s)
URL : https://src.fedoraproject.org/tests/selinux/c/60c10ba7e13ead1dbe74ad3c31f387f54527c3ac?branch=pr775-checkpolicy-revdeps
Log:
kernel/selinux-testsuite: exclude userfaultfd on old kernels
On RHEL-7 (and other old kernels), __NR_userfaultfd may not be defined
on some arches, so add a kernel version check for now to exclude
userfaultfd test when it would be skipped anyway.
I'll fix this more nicely in upstream, this is just a temporary solution
until that gets merged.
Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
---
diff --git a/kernel/selinux-testsuite/runtest.sh b/kernel/selinux-testsuite/runtest.sh
index c373309..51dbadc 100755
--- a/kernel/selinux-testsuite/runtest.sh
+++ b/kernel/selinux-testsuite/runtest.sh
@@ -375,6 +375,11 @@ rlJournalStart
rlRun "sed -i 's/SCTP_SEND_FAILED_EVENT/SCTP_STREAM_CHANGE_EVENT + 1/g' tests/sctp/*.c" 0 \
"Fix SCTP test compilation on old RHEL kernels"
fi
+ if kver_lt 5.12; then
+ # __NR_userfaultfd not defined in s390x headers on RHEL-7
+ # For now just disable it on kernels without the feature.
+ exclude_tests+=" userfaultfd"
+ fi
# CONFIG_KEYS_DH_COMPUTE not enabled on RHEL-8 :(
exclude_tests+=" keys"
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-11 13:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-11 13:18 [tests/selinux] pr775-checkpolicy-revdeps: kernel/selinux-testsuite: exclude userfaultfd on old kernels Ondrej Mosnacek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox