public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Zdenek Pytela <zpytela@redhat.com>
To: git-commits@fedoraproject.org
Subject: [tests/selinux] main: Change default context for /var/named
Date: Wed, 05 Aug 2026 08:16:03 GMT [thread overview]
Message-ID: <178591776342.1.7982225101881448982.tests-selinux-b1a11e8d06d2@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : tests/selinux
Branch : main
Commit : b1a11e8d06d27adb4a9347c852a6bbcad8891530
Author : Zdenek Pytela <zpytela@redhat.com>
Date : 2026-08-05T07:45:36+00:00
Stats : +15/-0 in 1 file(s)
URL : https://src.fedoraproject.org/tests/selinux/c/b1a11e8d06d27adb4a9347c852a6bbcad8891530?branch=main
Log:
Change default context for /var/named
The selinux-policy commit adding support for bind packages with suffixes
also changes default context for /var/named and adds a few more
explicit entries.
This test update makes an adjustment to the current state.
---
diff --git a/selinux-policy/bz562833-chrooted-named-file-contexts/runtest.sh b/selinux-policy/bz562833-chrooted-named-file-contexts/runtest.sh
index bb3a8d5..7df24ef 100755
--- a/selinux-policy/bz562833-chrooted-named-file-contexts/runtest.sh
+++ b/selinux-policy/bz562833-chrooted-named-file-contexts/runtest.sh
@@ -55,6 +55,20 @@ rlJournalStart
rlPhaseEnd
rlPhaseStartTest "bz#562833"
+ if rlIsRHEL ">=11.0" || rlIsCentOS ">=11.0" || rlIsFedora ">=45" ; then
+ for PREFIX in "" "/var/named/chroot" ; do
+ rlSEMatchPathCon "${PREFIX}/dev/null" "null_device_t"
+ rlSEMatchPathCon "${PREFIX}/dev/random" "random_device_t"
+ rlSEMatchPathCon "${PREFIX}/dev/zero" "zero_device_t"
+ rlSEMatchPathCon "${PREFIX}/etc/named.conf" "named_conf_t"
+ rlSEMatchPathCon "${PREFIX}/run/named" "named_var_run_t"
+ rlSEMatchPathCon "${PREFIX}/var/log" "var_log_t"
+ rlSEMatchPathCon "${PREFIX}/var/log/named.log" "named_log_t"
+ rlSEMatchPathCon "${PREFIX}/var/named/data" "named_cache_t"
+ rlSEMatchPathCon "${PREFIX}/var/named/slaves" "named_cache_t"
+ rlSEMatchPathCon "${PREFIX}/var/named" "named_cache_t"
+ done
+ else
for PREFIX in "" "/var/named/chroot" ; do
rlSEMatchPathCon "${PREFIX}/dev/null" "null_device_t"
rlSEMatchPathCon "${PREFIX}/dev/random" "random_device_t"
@@ -67,6 +81,7 @@ rlJournalStart
rlSEMatchPathCon "${PREFIX}/var/named/slaves" "named_cache_t"
rlSEMatchPathCon "${PREFIX}/var/named" "named_zone_t"
done
+ fi
rlPhaseEnd
rlPhaseStartTest "bz#578187"
reply other threads:[~2026-08-05 8:16 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=178591776342.1.7982225101881448982.tests-selinux-b1a11e8d06d2@fedoraproject.org \
--to=zpytela@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