public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [tests/selinux] pr775-checkpolicy-revdeps: Update systemd-oomd test
@ 2026-09-11 13:23 Zdenek Pytela
0 siblings, 0 replies; only message in thread
From: Zdenek Pytela @ 2026-09-11 13:23 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : tests/selinux
Branch : pr775-checkpolicy-revdeps
Commit : bbaec0906ee230e8b8ad4d01079e0dcde0f84a3f
Author : Zdenek Pytela <zpytela@redhat.com>
Date : 2025-08-11T13:41:35+02:00
Stats : +2/-1 in 1 file(s)
URL : https://src.fedoraproject.org/tests/selinux/c/bbaec0906ee230e8b8ad4d01079e0dcde0f84a3f?branch=pr775-checkpolicy-revdeps
Log:
Update systemd-oomd test
Do not check the type of /proc/pressure with matchpathcon because
the type is assigned using genfscon which is not recognised by
userspace tools.
Ensure that the /etc/systemd/system/-.slice.d and
/etc/systemd/system/user@.service.d directories exist before
creating files in them.
---
diff --git a/selinux-policy/systemd-oomd/runtest.sh b/selinux-policy/systemd-oomd/runtest.sh
index 1534656..6ab389b 100755
--- a/selinux-policy/systemd-oomd/runtest.sh
+++ b/selinux-policy/systemd-oomd/runtest.sh
@@ -71,7 +71,6 @@ rlJournalStart
rlLog "The ${SERVICE_NAME} service is not SELinux confined."
else
rlSEMatchPathCon "${FILE_PATH}" "${FILE_CONTEXT}"
- rlSEMatchPathCon "/proc/pressure" "proc_psi_t"
rlSESearchRule "allow systemd_oomd_t proc_psi_t : file { getattr ioctl lock open read } [ ]"
rlSESearchRule "allow systemd_oomd_t domain : dir { getattr ioctl lock open read search } [ ]"
rlSESearchRule "allow systemd_oomd_t domain : file { getattr ioctl lock open read } [ ]"
@@ -93,12 +92,14 @@ rlJournalStart
rlRun "systemctl status ${SERVICE_NAME}"
# enable swap-based killing on all units in the root slice
+ mkdir -p /etc/systemd/system/-.slice.d
cat >> /etc/systemd/system/-.slice.d/override.conf << EOF
[Slice]
ManagedOOMSwap=kill
EOF
# memory pressure example settings
+ mkdir -p /etc/systemd/system/user@.service.d
cat >> /etc/systemd/system/user@.service.d/override.conf << EOF
[Service]
ManagedOOMMemoryPressure=kill
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-11 13:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-11 13:23 [tests/selinux] pr775-checkpolicy-revdeps: Update systemd-oomd test Zdenek Pytela
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox