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: look for additional systemd-sleep rules
Date: Fri, 11 Sep 2026 13:18:32 GMT [thread overview]
Message-ID: <178913271223.1.6474378441159607012.tests-selinux-59f9aeedbff2@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : tests/selinux
Branch : pr775-checkpolicy-revdeps
Commit : 59f9aeedbff2b488c8b54aefcaec66fc99669fdf
Author : Milos Malik <mmalik@redhat.com>
Date : 2020-12-03T16:29:23+01:00
Stats : +5/-1 in 1 file(s)
URL : https://src.fedoraproject.org/tests/selinux/c/59f9aeedbff2b488c8b54aefcaec66fc99669fdf?branch=pr775-checkpolicy-revdeps
Log:
look for additional systemd-sleep rules
Additional SELinux denials were found during systemd-sleep testing
process. Unfortunately, SELinux policy rules which fix these denials
were not tested in this TC. Now, they are.
---
diff --git a/selinux-policy/swap-file-and-systemd-access/runtest.sh b/selinux-policy/swap-file-and-systemd-access/runtest.sh
index 84339ff..6ce368d 100755
--- a/selinux-policy/swap-file-and-systemd-access/runtest.sh
+++ b/selinux-policy/swap-file-and-systemd-access/runtest.sh
@@ -64,8 +64,12 @@ rlJournalStart
rlSEMatchPathCon "/sys/power" "sysfs_t"
rlSEMatchPathCon "/sys/power/state" "sysfs_t"
rlSESearchRule "allow systemd_sleep_t swapfile_t : file { append getattr ioctl lock open read write } [ ]"
- rlSESearchRule "allow systemd_sleep_t systemd_sleep_t : capability { sys_ptrace } [ ]"
+ rlSESearchRule "dontaudit systemd_sleep_t systemd_sleep_t : capability { sys_ptrace } [ ]"
rlSESearchRule "allow systemd_sleep_t sysfs_t : dir { write } [ ]"
+ rlSESearchRule "allow systemd_sleep_t sysfs_t : file { getattr open write } [ ]"
+ rlSESearchRule "allow systemd_sleep_t systemd_sleep_t : capability { sys_resource } [ ]"
+ rlSESearchRule "allow systemd_sleep_t kmsg_device_t : chr_file { write } [ ]"
+ rlSESearchRule "allow systemd_sleep_t kernel_t : unix_dgram_socket { sendto } [ ]"
rlPhaseEnd
if rlIsFedora ; then
reply other threads:[~2026-09-11 13:18 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=178913271223.1.6474378441159607012.tests-selinux-59f9aeedbff2@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