public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [tests/selinux] pr775-checkpolicy-revdeps: selinux-testsuite: Bump to latest upstream commit
@ 2026-09-11 13:18 Ondrej Mosnacek
  0 siblings, 0 replies; 2+ messages 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 : 893ed4c8981ea3e3afb4adc9420eb03a1c9260c0
            Author : Ondrej Mosnacek <omosnace@redhat.com>
            Date   : 2021-01-19T18:07:52+01:00
            Stats  : +1/-1 in 1 file(s)
            URL    : https://src.fedoraproject.org/tests/selinux/c/893ed4c8981ea3e3afb4adc9420eb03a1c9260c0?branch=pr775-checkpolicy-revdeps

            Log:
            selinux-testsuite: Bump to latest upstream commit

Brings in two bugfixes to adapt to changes in Fedora policy.

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

---
diff --git a/kernel/selinux-testsuite/runtest.sh b/kernel/selinux-testsuite/runtest.sh
index af2b43d..434442c 100755
--- a/kernel/selinux-testsuite/runtest.sh
+++ b/kernel/selinux-testsuite/runtest.sh
@@ -35,7 +35,7 @@ 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="ce70a925a4c7766fab698330a626d9a5f5194cc5"
+DEFAULT_COMMIT="24bb5c0090710767ff187f1682e5bf355166caa3"
 # 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.

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [tests/selinux] pr775-checkpolicy-revdeps: selinux-testsuite: Bump to latest upstream commit
@ 2026-09-11 13:18 Ondrej Mosnacek
  0 siblings, 0 replies; 2+ messages 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 : 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'

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-09-11 13:18 UTC | newest]

Thread overview: 2+ messages (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: selinux-testsuite: Bump to latest upstream commit Ondrej Mosnacek
  -- strict thread matches above, loose matches on Subject: below --
2026-09-11 13:18 Ondrej Mosnacek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox