public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Milos Malik <mmalik@redhat.com>
To: git-commits@fedoraproject.org
Subject: [tests/selinux] pr775-checkpolicy-revdeps: fix 2 failing test phases
Date: Fri, 11 Sep 2026 13:19:27 GMT	[thread overview]
Message-ID: <178913276736.1.7700028282797443342.tests-selinux-bf766edd9582@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : tests/selinux
            Branch : pr775-checkpolicy-revdeps
            Commit : bf766edd958204a94cfb012ffe31b1531133fd2e
            Author : Milos Malik <mmalik@redhat.com>
            Date   : 2021-11-01T07:26:25+00:00
            Stats  : +2/-2 in 1 file(s)
            URL    : https://src.fedoraproject.org/tests/selinux/c/bf766edd958204a94cfb012ffe31b1531133fd2e?branch=pr775-checkpolicy-revdeps

            Log:
            fix 2 failing test phases

Test phase devoted to BZ#1614236 looked for getattr and open permissions,
but they are not listed in the bug report. The only permission mentioned
in the bug report is read and that will be tested from now on.

Because BZ#1878094 is not yet fixed, the cleanup phase finds certain
SELinux denials that appeared during the run of the automated test.
These SELinux denials are related to the way systemd and SELinux policy
handle the creation of objects under /run/user/<UID>/ directory.
Because they are not related to D-bus services, they will be ignored
from now on.

---
diff --git a/selinux-policy/bz481628-send-msg-to-dbus/runtest.sh b/selinux-policy/bz481628-send-msg-to-dbus/runtest.sh
index c0bdbd9..1ad9cb7 100755
--- a/selinux-policy/bz481628-send-msg-to-dbus/runtest.sh
+++ b/selinux-policy/bz481628-send-msg-to-dbus/runtest.sh
@@ -99,7 +99,7 @@ rlJournalStart
     rlPhaseStartTest "bz#1614236"
         rlSEMatchPathCon "/usr/bin/dbus-daemon" "dbusd_exec_t"
         rlSEMatchPathCon "/dev/nvme0n1p1" "nvme_device_t"
-        rlSESearchRule "allow system_dbusd_t nvme_device_t : blk_file { getattr open read }"
+        rlSESearchRule "allow system_dbusd_t nvme_device_t : blk_file { read } [ ]"
     rlPhaseEnd
     fi
 
@@ -161,7 +161,7 @@ rlJournalStart
 
     rlPhaseStartCleanup
         sleep 2
-        rlSECheckAVC
+        rlSECheckAVC --ignore 'type=AVC .* create .*systemd .*:user_t:.*:user_tmp_t:.*tclass=dir'
         rm -f files.txt
 
         rlFileRestore

                 reply	other threads:[~2026-09-11 13:19 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=178913276736.1.7700028282797443342.tests-selinux-bf766edd9582@fedoraproject.org \
    --to=mmalik@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