Bug 1184073
| Summary: | NTP cannot be enabled or disabled using gnome-control-center: SELinux policy denies access. | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Karol Babioch <kbabioch> |
| Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
| Status: | CLOSED ERRATA | QA Contact: | Milos Malik <mmalik> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 7.0 | CC: | kbabioch, lvrabec, mgrepl, mmalik, nobody, oliver, plautrba, pvrabec, ssekidde |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | selinux-policy-3.13.1-24.el7 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2015-11-19 10:25:26 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Karol Babioch
2015-01-20 14:30:12 UTC
Further information about the policies in place: selinux-policy.noarch 3.12.1-153.el7_0.13 @internal-it-stage-rhel-x86_64-workstation-7 selinux-policy-targeted.noarch 3.12.1-153.el7_0.13 Further information about the policies in place: selinux-policy.noarch 3.12.1-153.el7_0.13 @internal-it-stage-rhel-x86_64-workstation-7 selinux-policy-targeted.noarch 3.12.1-153.el7_0.13 This is a line from the audit log:
type=USER_AVC msg=audit(1421765583.172:929): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='avc: denied { enable } for auid=-1 uid=-1 gid=-1 path="system" scontext=system_u:system_r:systemd_timedated_t:s0 tcontext=system_u:system_r:init_t:s0 tclass=system exe="/usr/lib/systemd/systemd" sauid=0 hostname=? addr=? terminal=?'
Are you able to reproduce it on RHEL-7.1 nightly build?
There was some confusion between tclass=system and tclass=service in RHEL-7.0 in systemd tools.
Based on latest RHEL-7.1 policy it should be allowed:
# rpm -qa selinux-policy\*
selinux-policy-3.13.1-16.el7.noarch
selinux-policy-targeted-3.13.1-16.el7.noarch
selinux-policy-doc-3.13.1-16.el7.noarch
selinux-policy-mls-3.13.1-16.el7.noarch
selinux-policy-minimum-3.13.1-16.el7.noarch
selinux-policy-devel-3.13.1-16.el7.noarch
# sesearch -s systemd_timedated_t -p enable -A -C
Found 2 semantic av rules:
allow systemd_timedated_t chronyd_unit_file_t : service { start stop status reload enable disable } ;
allow systemd_timedated_t ntpd_unit_file_t : service { start stop status reload enable disable } ;
#
(In reply to Milos Malik from comment #5) > Are you able to reproduce it on RHEL-7.1 nightly build? > > There was some confusion between tclass=system and tclass=service in > RHEL-7.0 in systemd tools. > > Based on latest RHEL-7.1 policy it should be allowed: Yes, I've just tested it and it does work fine with RHEL 7.1. I've only used the RHEL 7.1 ISO (20141204.2), though. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2015-2300.html |