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: kernel/selinux-testsuite: bump upstream commit
Date: Fri, 11 Sep 2026 13:19:45 GMT	[thread overview]
Message-ID: <178913278561.1.15158943259567656116.tests-selinux-fff6691dcdb5@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : tests/selinux
            Branch : pr775-checkpolicy-revdeps
            Commit : fff6691dcdb5cb38ef30fb86e83ad7ee8c716957
            Author : Ondrej Mosnacek <omosnace@redhat.com>
            Date   : 2022-04-20T17:07:44+02:00
            Stats  : +17/-20 in 1 file(s)
            URL    : https://src.fedoraproject.org/tests/selinux/c/fff6691dcdb5cb38ef30fb86e83ad7ee8c716957?branch=pr775-checkpolicy-revdeps

            Log:
            kernel/selinux-testsuite: bump upstream commit

...and remove some workarounds that are no longer needed. Also add code
to enable/disable SCTP client peeloff tests based on where SCTP client
peeloff is currently fixed in RHEL.

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

---
diff --git a/kernel/selinux-testsuite/runtest.sh b/kernel/selinux-testsuite/runtest.sh
index 184cc68..3ac3078 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="b2d0f3c5f946e58e3e6f8f1fff81d8435b005f92"
+DEFAULT_COMMIT="b11701a55614eeb20e85fee9829d1699cc13c39a"
 # 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.
@@ -304,7 +304,7 @@ rlJournalStart
         exclude_tests=""
         force_tests=""
         for file in ./tests/nnp*/execnnp.c; do
-            rlRun "sed -i 's/3.18/3.9/' $file" 0 \
+            rlRun "sed -i 's/3\.18/3.9/' $file" 0 \
                 "Fix up kernel version in nnp test"
         done
         if rlIsRHEL "<8.2"; then
@@ -376,6 +376,21 @@ rlJournalStart
                 # a17f0671017f selinux: vsock: Set SID for socket returned by accept()
                 exclude_tests+=" vsock_socket"
             fi
+
+            sctp_client_peeloff=0
+            if kver_ge 4.18.0-305.39.1 && kver_lt 4.18.0-306; then
+                sctp_client_peeloff=1
+            fi
+            if kver_ge 4.18.0-348.19.1 && kver_lt 4.18.0-349; then
+                sctp_client_peeloff=1
+            fi
+            if kver_ge 4.18.0-372.1.1 && kver_lt 5.14; then
+                sctp_client_peeloff=1
+            fi
+            if [ "$sctp_client_peeloff" -eq 1 ]; then
+                rlRun "sed -i 's/5\.18/4.18/g' tests/sctp/test" 0 \
+                    "Fix up kernel version in sctp test"
+            fi
         fi
 
         # CKI mainline kernels don't ship with module build infrastructure
@@ -403,24 +418,6 @@ rlJournalStart
                 "Force applicable tests: $force_tests"
         fi
 
-        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'
-            rlRun "sed -i -e '$script1' -e '$script2' ./tests/extended_socket_class/test" 0 \
-                "No SCTP support => fix up extended_socket_class test"
-        fi
-
-        # on aarch64 and s390x the kernel support for Bluetooth is turned
-        # off so we disable the Bluetooth socket tests there
-        case "$(rlGetPrimaryArch)" in
-            aarch64|s390x)
-                script1='s/runcon -t test_bluetooth_socket_t/true/g'
-                script2='s/runcon -t test_no_bluetooth_socket_t/false/g'
-                rlRun "sed -i -e '$script1' -e '$script2' ./tests/extended_socket_class/test" 0 \
-                    "No Bluetooth support => fix up extended_socket_class test"
-                ;;
-        esac
-
         # Initialize report.
         rlRun "echo 'Remote: $GIT_URL' >results.log" 0
         rlRun "echo 'Branch: $GIT_BRANCH' >>results.log" 0

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

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-11 13:19 Ondrej Mosnacek [this message]
  -- strict thread matches above, loose matches on Subject: below --
2026-09-11 13:20 [tests/selinux] pr775-checkpolicy-revdeps: kernel/selinux-testsuite: bump upstream commit Ondrej Mosnacek
2026-09-11 13:20 Ondrej Mosnacek
2026-09-11 13:20 Ondrej Mosnacek
2026-09-11 13:19 Ondrej Mosnacek
2026-09-11 13:19 Ondrej Mosnacek
2026-09-11 13:19 [tests/selinux] pr775-checkpolicy-revdeps: kernel/selinux-testsuite: Bump " Ondrej Mosnacek
2026-09-11 13:19 Ondrej Mosnacek
2026-09-11 13:18 Ondrej Mosnacek
2026-09-11 13:18 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=178913278561.1.15158943259567656116.tests-selinux-fff6691dcdb5@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