public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Ondrej Mosnacek <omosnace@redhat.com>
To: git-commits@fedoraproject.org
Subject: [tests/selinux] pr775-checkpolicy-revdeps: selinux-testsuite: Bump to latest upstream commit
Date: Fri, 11 Sep 2026 13:18:26 GMT	[thread overview]
Message-ID: <178913270611.1.2501298353300359369.tests-selinux-8c8e51213859@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : tests/selinux
            Branch : pr775-checkpolicy-revdeps
            Commit : 8c8e51213859e90b9c6513b0bcd4815ecc594474
            Author : Ondrej Mosnacek <omosnace@redhat.com>
            Date   : 2020-11-09T16:49:29+01:00
            Stats  : +8/-19 in 1 file(s)
            URL    : https://src.fedoraproject.org/tests/selinux/c/8c8e51213859e90b9c6513b0bcd4815ecc594474?branch=pr775-checkpolicy-revdeps

            Log:
            selinux-testsuite: Bump to latest upstream commit

The main highlight is that filesystems tests are now run for all
supported filesystems, instead of just the one that is native to the
platform.

Also, the testsuite no longer (directly) requires Python, so drop the
dependency and a related workaround.

Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>

---
diff --git a/kernel/selinux-testsuite/runtest.sh b/kernel/selinux-testsuite/runtest.sh
index be9ee3f..af2b43d 100755
--- a/kernel/selinux-testsuite/runtest.sh
+++ b/kernel/selinux-testsuite/runtest.sh
@@ -35,13 +35,13 @@ PACKAGE="selinux-policy"
 # This should be updated as needed after verifying that the new version
 # doesn't break testing and after applying all necessary tweaks in the TC.
 # Run with GIT_BRANCH=master to run the latest upstream version.
-DEFAULT_COMMIT="0c8e8d550f95b41ad64624d3f3e149bf3c6f290c"
+DEFAULT_COMMIT="ce70a925a4c7766fab698330a626d9a5f5194cc5"
 # Default pull requests to merge before running the test.
 # If non-empty, then after checking out GIT_BRANCH the listed upstream pull
 # requests (by number) are merged, creating a new temporary local branch.
 DEFAULT_PULLS=""
 # Default SELinux Patchwork series to apply before running the test.
-DEFAULT_PATCHES="372903"
+DEFAULT_PATCHES=""
 
 # Optional test parameter - location of testuite git.
 GIT_URL=${GIT_URL:-"git://github.com/SELinuxProject/selinux-testsuite"}
@@ -145,12 +145,15 @@ rlJournalStart
             audit
             checkpolicy
             curl
+            dosfstools
+            e2fsprogs
             elfutils-libelf-devel
             expect
             gcc
             git
             grep
             iptables
+            jfsutils
             keyutils-libs-devel
             libbpf-devel
             libibverbs-devel
@@ -171,7 +174,6 @@ rlJournalStart
             policycoreutils
             policycoreutils-devel
             policycoreutils-python
-            python3
             python2-lxml
             python3-lxml
             quota
@@ -326,22 +328,11 @@ rlJournalStart
             rlRun "sed -i '/SUBDIRS += bpf/d;/export CFLAGS += -DHAVE_BPF/d' tests/Makefile" 0 \
                 "RHEL < 8.2 doesn't ship libbpf => disable BPF subtests"
         fi
-        if ! [ -x /usr/bin/python3 ]; then
-            # to avoid error messages like runcon: ‘overlay/access’: No such file or directory
-            rlRun "rpm -qa | grep python | sort"
-            rlRun "sed -i 's/python3\$/python2/' tests/overlay/access" 0 \
-                "Fix up Python shebang in overlay test"
-        fi
 
         rlRun "sed -i 's/tm\.tv_sec = [0-9]*;/tm.tv_sec = $NETWORK_TIMEOUT;/' ./tests/*/*.c" 0 \
             "Tweak timeout in networking tests" # 2 secs is too little for SCTP test
 
         if rlIsRHEL; then
-            if kver_lt "3.10" || rlIsRHEL '<7.4'; then
-                # filesystem tests don't work well on RHEL <7.4
-                exclude_tests+=" filesystem"
-            fi
-
             if kver_lt "3.10.0-349"; then
                 # c4684bbdac07 [security] selinux: Permit bounded transitions under NO_NEW_PRIVS or NOSUID
                 # da74590f6501 [security] selinux: reject setexeccon() on MNT_NOSUID applications with -EACCES
@@ -349,9 +340,10 @@ rlJournalStart
             fi
 
             if kver_lt "3.10.0-693"; then
-                # I don't know when exactly this test starts passing, so I'm just
-                # disabling it for anything below the RHEL-7.4 kernel...
+                # I don't know when exactly these tests start passing, so I'm just
+                # disabling them for anything below the RHEL-7.4 kernel...
                 exclude_tests+=" inet_socket"
+                exclude_tests+=" filesystem/ext4 filesystem/xfs filesystem/jfs filesystem/vfat"
             fi
 
             if kver_lt "3.10.0-875"; then
@@ -422,9 +414,6 @@ rlJournalStart
                 "Force applicable tests: $force_tests"
         fi
 
-        # needed for filesystem test on RHEL-7
-        rlRun "modprobe ext4"
-
         if ! modprobe sctp 2>/dev/null; then
             script1='s/runcon -t test_sctp_socket_t/true/g'
             script2='s/runcon -t test_no_sctp_socket_t/false/g'

             reply	other threads:[~2026-09-11 13:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-11 13:18 Ondrej Mosnacek [this message]
2026-09-11 13:18 [tests/selinux] pr775-checkpolicy-revdeps: selinux-testsuite: Bump to latest upstream commit Ondrej Mosnacek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178913270611.1.2501298353300359369.tests-selinux-8c8e51213859@fedoraproject.org \
    --to=omosnace@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox