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: correct policy rule checks related to /sys/power/state
Date: Fri, 11 Sep 2026 13:19:15 GMT [thread overview]
Message-ID: <178913275543.1.10865284421295419247.tests-selinux-44e725eeffa2@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : tests/selinux
Branch : pr775-checkpolicy-revdeps
Commit : 44e725eeffa29925180025ce1dbb3c9342cfc29d
Author : Milos Malik <mmalik@redhat.com>
Date : 2021-07-01T11:08:57+02:00
Stats : +3/-2 in 2 file(s)
URL : https://src.fedoraproject.org/tests/selinux/c/44e725eeffa29925180025ce1dbb3c9342cfc29d?branch=pr775-checkpolicy-revdeps
Log:
correct policy rule checks related to /sys/power/state
One policy rule check related to BZ#1968610 was incorrect,
because it assumed that the /sys/power/state is a directory,
but it is a file.
Now, it is correct.
---
diff --git a/selinux-policy/swap-file-and-systemd-access/PURPOSE b/selinux-policy/swap-file-and-systemd-access/PURPOSE
index e92b3f3..83177ef 100644
--- a/selinux-policy/swap-file-and-systemd-access/PURPOSE
+++ b/selinux-policy/swap-file-and-systemd-access/PURPOSE
@@ -1,5 +1,5 @@
PURPOSE of /CoreOS/selinux-policy/Regression/swap-file-and-systemd-access
Author: Milos Malik <mmalik@redhat.com>
-SELinux interferes with systemd when accessing a swap file.
+SELinux interferes with systemd when accessing swap files or swap partitions.
diff --git a/selinux-policy/swap-file-and-systemd-access/runtest.sh b/selinux-policy/swap-file-and-systemd-access/runtest.sh
index 1bcb508..430defb 100755
--- a/selinux-policy/swap-file-and-systemd-access/runtest.sh
+++ b/selinux-policy/swap-file-and-systemd-access/runtest.sh
@@ -86,7 +86,8 @@ rlJournalStart
rlPhaseStartTest "bz#1968610"
rlSEMatchPathCon "/sys/power" "sysfs_t"
rlSEMatchPathCon "/sys/power/state" "sysfs_t"
- rlSESearchRule "allow systemd_sleep_t sysfs_t : dir { add_name create } [ ]"
+ rlSESearchRule "allow systemd_sleep_t sysfs_t : dir { add_name write } [ ]"
+ rlSESearchRule "allow systemd_sleep_t sysfs_t : file { create } [ ]"
rlPhaseEnd
if ${REAL_SCENARIOS} ; then
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=178913275543.1.10865284421295419247.tests-selinux-44e725eeffa2@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