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/CVE-2025-71085: fix netlabel setup
Date: Fri, 11 Sep 2026 13:23:34 GMT	[thread overview]
Message-ID: <178913301460.1.14465649663928676528.tests-selinux-35144ba78dac@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : tests/selinux
            Branch : pr775-checkpolicy-revdeps
            Commit : 35144ba78dac0dcaf411cd0dca2474925c0b2f35
            Author : Ondrej Mosnacek <omosnace@redhat.com>
            Date   : 2026-02-24T11:35:17+01:00
            Stats  : +6/-2 in 1 file(s)
            URL    : https://src.fedoraproject.org/tests/selinux/c/35144ba78dac0dcaf411cd0dca2474925c0b2f35?branch=pr775-checkpolicy-revdeps

            Log:
            kernel/CVE-2025-71085: fix netlabel setup

The original reproducer would break network traffic outside IPv6
localhost- make sure there are default rules for unlabeled traffic so
that the machine doesn't lose network connectivity during test.

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

---
diff --git a/kernel/CVE-2025-71085/runtest.sh b/kernel/CVE-2025-71085/runtest.sh
index 0515868..1835976 100755
--- a/kernel/CVE-2025-71085/runtest.sh
+++ b/kernel/CVE-2025-71085/runtest.sh
@@ -13,10 +13,14 @@ rlJournalStart
 
         rlRun "gcc -o reproducer reproducer.c" 0 "Compile the reproducer"
 
-        rlRun "netlabelctl map del default" 0 "Delete default netlabel map"
         rlRun "netlabelctl calipso add pass doi:7" 0 "Set up CALIPSO"
+        rlRun "netlabelctl map del default" 0 "Delete default netlabel map"
+        rlRun "netlabelctl map add default address:0.0.0.0/0 protocol:unlbl" 0 \
+            "Set unlabeled traffic by default"
+        rlRun "netlabelctl map add default address:::/0 protocol:unlbl" 0 \
+            "Set unlabeled traffic by default"
         rlRun "netlabelctl map add default address:0::1/128 protocol:calipso,7" 0 \
-            "Set up CALIPSO netlabel map"
+            "Set up CALIPSO for localhost only"
     rlPhaseEnd
 
     rlPhaseStartTest

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

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=178913301460.1.14465649663928676528.tests-selinux-35144ba78dac@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