Bug 1140874
| Summary: | systemd-sysctl lacking sys_rawio capability access | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Victor J. Orlikowski <vjo> |
| Component: | selinux-policy-targeted | Assignee: | Lukas Vrabec <lvrabec> |
| Status: | CLOSED ERRATA | QA Contact: | Ben Levenson <benl> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 20 | CC: | dwalsh |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | selinux-policy-3.12.1-197.fc20 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2015-03-10 00:56:08 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: | |||
3a53153ea9fc831048aa63612c725f9b367712f0 fixes this in git. commit 5f74d9a64ee8df94953e6d4b2528c50f62f1b864
Author: Dan Walsh <dwalsh>
Date: Sat Jan 3 11:01:58 2015 -0500
systemd_sysctl needs to have sys_rawio
selinux-policy-3.12.1-197.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-197.fc20 Package selinux-policy-3.12.1-197.fc20: * should fix your issue, * was pushed to the Fedora 20 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.12.1-197.fc20' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2015-1398/selinux-policy-3.12.1-197.fc20 then log in and leave karma (feedback). selinux-policy-3.12.1-197.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report. |
Description of problem: systemd-sysctl lacks adequate allowances in selinux-targeted-policy for it to do its job. systemctl --failed shows it to have failed; checking the audit log, we see that it failed as a result of lacking access to the "sys_rawio" capability. Version-Release number of selected component (if applicable): selinux-policy-targeted-3.12.1-183.fc20.noarch How reproducible: systemctl restart systemd-sysctl on a Fedora 20 system having kernel kernel-3.15.10-201.fc20.x86_64 and custom sysctl values in a file under /etc/sysctl.d Steps to Reproduce: 1. Ensure that you have a set of custom sysctl values in a file under /etc/sysctl.d 2. Run systemctl restart systemd-sysctl 3. Note that systemd-sysctl will appear to have failed. Audit log will show that this is due to sys_rawio capability being missing. Using audit2allow to add the following module: module systemd-sysctl-fix 1.0; require { type systemd_sysctl_t; class capability sys_rawio; } #============= systemd_sysctl_t ============== allow systemd_sysctl_t self:capability sys_rawio; resolves the issue. Actual results: systemd-sysctl unable to apply custom sysctl values. Expected results: systemd-sysctl should run successfully. Additional info: