Bug 884633

Summary: sntp is not confined
Product: [Fedora] Fedora Reporter: Miroslav Lichvar <mlichvar>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 17CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-01-07 04:03:29 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 Miroslav Lichvar 2012-12-06 13:04:53 UTC
Description of problem:
The sntp program from the ntp package is a replacement for ntpdate, but it's not confined. Changing its context to ntpdate_exec_t doesn't seem to break it.

Version-Release number of selected component (if applicable):
selinux-policy-targeted-3.10.0-159.fc17.noarch

Comment 1 Miroslav Grepl 2012-12-06 19:37:00 UTC
Is it just binary replacement? Or are there new paths for lib/log/run files?

Comment 2 Miroslav Lichvar 2012-12-06 19:43:13 UTC
It's not a drop-in replacement for ntpdate, but their functionality is very similar. The only differences I see now is that sntp doesn't use libcap and it writes to /var/lib/sntp-kod.

Comment 3 Miroslav Grepl 2012-12-07 08:31:16 UTC
commit 23a53aa57d7494b8b652e0712ef51c9b79e039ae
Author: Miroslav Grepl <mgrepl>
Date:   Fri Dec 7 09:30:04 2012 +0100

    Add sntp support to ntp policy

Comment 4 Fedora Update System 2012-12-17 18:43:49 UTC
selinux-policy-3.10.0-165.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/selinux-policy-3.10.0-165.fc17

Comment 5 Fedora Update System 2012-12-18 02:39:57 UTC
Package selinux-policy-3.10.0-165.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.10.0-165.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-20544/selinux-policy-3.10.0-165.fc17
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2013-01-05 06:45:08 UTC
Package selinux-policy-3.10.0-166.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.10.0-166.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-20544/selinux-policy-3.10.0-166.fc17
then log in and leave karma (feedback).

Comment 7 Fedora Update System 2013-01-07 04:03:31 UTC
selinux-policy-3.10.0-166.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.