From: "Sugar, David" <dsugar@tresys.com>
To: "selinux-refpolicy@vger.kernel.org" <selinux-refpolicy@vger.kernel.org>
Subject: [PATCH 3/4] Allow ntpd to update timezone symlink
Date: Wed, 20 Mar 2019 00:20:34 +0000 [thread overview]
Message-ID: <20190320002012.21220-4-dsugar@tresys.com> (raw)
In-Reply-To: <20190320002012.21220-1-dsugar@tresys.com>
type=AVC msg=audit(1553013821.624:9907): avc: denied { create } for pid=16281 comm="systemd-timedat" name=".#localtime69bc4c9ad513a247" scontext=system_u:system_r:ntpd_t:s0 tcontext=system_u:object_r:etc_t:s0 tclass=lnk_file permissive=1
type=AVC msg=audit(1553013821.624:9908): avc: denied { rename } for pid=16281 comm="systemd-timedat" name=".#localtime69bc4c9ad513a247" dev="dm-1" ino=714303 scontext=system_u:system_r:ntpd_t:s0 tcontext=system_u:object_r:etc_t:s0 tclass=lnk_file permissive=1
type=AVC msg=audit(1553013821.624:9908): avc: denied { unlink } for pid=16281 comm="systemd-timedat" name="localtime" dev="dm-1" ino=1063377 scontext=system_u:system_r:ntpd_t:s0 tcontext=system_u:object_r:etc_t:s0 tclass=lnk_file permissive=1
Signed-off-by: Dave Sugar <dsugar@tresys.com>
---
policy/modules/services/ntp.te | 1 +
1 file changed, 1 insertion(+)
diff --git a/policy/modules/services/ntp.te b/policy/modules/services/ntp.te
index d882fc59..eff38486 100644
--- a/policy/modules/services/ntp.te
+++ b/policy/modules/services/ntp.te
@@ -116,6 +116,7 @@ dev_rw_realtime_clock(ntpd_t)
domain_use_interactive_fds(ntpd_t)
domain_dontaudit_list_all_domains_state(ntpd_t)
+files_manage_etc_symlinks(ntpd_t)
files_read_etc_runtime_files(ntpd_t)
files_read_usr_files(ntpd_t)
files_list_var_lib(ntpd_t)
--
2.20.1
next prev parent reply other threads:[~2019-03-20 0:20 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-20 0:20 [PATCH 0/4] Resolve issues using /usr/bin/timedatectl Sugar, David
2019-03-20 0:20 ` [PATCH 1/4] Add interface ntp_dbus_chat Sugar, David
2019-03-24 18:36 ` Chris PeBenito
2019-03-20 0:20 ` [PATCH 2/4] Allow ntpd to update chronyd service Sugar, David
2019-03-24 18:36 ` Chris PeBenito
2019-03-20 0:20 ` Sugar, David [this message]
2019-03-24 18:36 ` [PATCH 3/4] Allow ntpd to update timezone symlink Chris PeBenito
2019-03-20 0:20 ` [PATCH 4/4] Allow ntpd to read unit files Sugar, David
2019-03-24 18:36 ` Chris PeBenito
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=20190320002012.21220-4-dsugar@tresys.com \
--to=dsugar@tresys.com \
--cc=selinux-refpolicy@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).