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: enable the logging_syslogd_append_public_content boolean
Date: Fri, 11 Sep 2026 13:18:47 GMT [thread overview]
Message-ID: <178913272723.1.17312977033755787253.tests-selinux-145822c1d27a@fedoraproject.org> (raw)
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
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=178913272723.1.17312977033755787253.tests-selinux-145822c1d27a@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