public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [tests/selinux] pr775-checkpolicy-revdeps: enable the logging_syslogd_append_public_content boolean
@ 2026-09-11 13:18 Milos Malik
0 siblings, 0 replies; only message in thread
From: Milos Malik @ 2026-09-11 13:18 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : tests/selinux
Branch : pr775-checkpolicy-revdeps
Commit : 145822c1d27a033402ec05b67c04ad11428df9ec
Author : Milos Malik <mmalik@redhat.com>
Date : 2021-01-29T13:22:20+00:00
Stats : +4/-1 in 1 file(s)
URL : https://src.fedoraproject.org/tests/selinux/c/145822c1d27a033402ec05b67c04ad11428df9ec?branch=pr775-checkpolicy-revdeps
Log:
enable the logging_syslogd_append_public_content boolean
The test reproduces scenarios described in 2 different bugs. One of
them is BZ#1823672. If this scenario should succeed, a newly introduced
boolean called logging_syslogd_append_public_content needs to be enabled.
The scenario also requires that the target log file exists before
the rsyslogd process tries to append to it.
---
diff --git a/selinux-policy/rsyslog-and-similar/runtest.sh b/selinux-policy/rsyslog-and-similar/runtest.sh
index 6fefc7a..24f0b0e 100755
--- a/selinux-policy/rsyslog-and-similar/runtest.sh
+++ b/selinux-policy/rsyslog-and-similar/runtest.sh
@@ -93,9 +93,11 @@ rlJournalStart
rlPhaseEnd
rlPhaseStartTest "rsyslog omfile cannot append to custom file locations bz#1823672"
+ rlRun "setsebool logging_syslogd_append_public_content on"
rlRun "cp -rv /etc/rsyslog.conf /etc/rsyslog.conf-orig"
tst_Time="$(date '+%T')"
rlRun "mkdir -p /my/custom/log"
+ rlRun "touch /my/custom/log/file"
rlRun 'semanage fcontext -a -t public_content_rw_t "/my/custom(/.*)?"'
rlRun "restorecon -Frv /my"
rlRun "echo ' ' >> /etc/rsyslog.conf"
@@ -106,8 +108,9 @@ rlJournalStart
rlRun "ausearch -m AVC --start $tst_Time" 1
rlRun 'semanage fcontext -d -t public_content_rw_t "/my/custom(/.*)?"'
rlRun "semodule -r rsyslog_imfile_policy"
- rlRun "cp -rv /etc/rsyslog.conf-orig /etc/rsyslog.conf"
+ rlRun "cp -rv /etc/rsyslog.conf-orig /etc/rsyslog.conf"
rlRun "systemctl restart rsyslog"
+ rlRun "setsebool logging_syslogd_append_public_content off"
rlPhaseEnd
rlPhaseStartCleanup
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-11 13:18 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:18 [tests/selinux] pr775-checkpolicy-revdeps: enable the logging_syslogd_append_public_content boolean Milos Malik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox