Bug 957842
| Summary: | SELinux is preventing cobbler from serving install image | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Michael Cronenworth <mike> | ||||
| Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | unspecified | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 18 | CC: | dominick.grift, dwalsh, jmontleo, mgrepl | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | x86_64 | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | selinux-policy-3.11.1-97.fc18 | Doc Type: | Bug Fix | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2013-05-31 04:25:11 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: | |||||||
| Attachments: |
|
||||||
|
Description
Michael Cronenworth
2013-04-29 16:59:14 UTC
Is auditd running? Created attachment 741892 [details]
audit messages when installer image is attempted to be read
Forgot about that. Here's the messages emitted with dontaudit off.
I am seeing this with the latest selinux policy as well (not sure when it started happening to be honest, as I don't use this setup too frequently).
Anything under /var/lib/cobbler/links is inaccessible by httpd, even with httpd_serve_cobbler_files on. It probably just neglected links.
I already have a host of custom stuff for cobbler, but in particular adding this seemed to fix this new issue:
module customcobbler 1.0;
require {
type httpd_t;
type cobbler_var_lib_t;
class lnk_file { read getattr };
}
#============= httpd_t ==============
#!!!! This avc is allowed in the current policy
allow httpd_t cobbler_var_lib_t:lnk_file { read getattr };
I added fixes.
commit 24eb5a32f0ff7622427318e5e26af3e621292160
Author: Miroslav Grepl <mgrepl>
Date: Tue May 28 10:36:22 2013 +0200
Fix cobbler_manage_lib_files/cobbler_read_lib_files to cover also lnk files
selinux-policy-3.11.1-97.fc18 has been submitted as an update for Fedora 18. https://admin.fedoraproject.org/updates/selinux-policy-3.11.1-97.fc18 I can confirm that the update fixes the issue. Thanks. Package selinux-policy-3.11.1-97.fc18: * should fix your issue, * was pushed to the Fedora 18 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.11.1-97.fc18' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2013-9612/selinux-policy-3.11.1-97.fc18 then log in and leave karma (feedback). selinux-policy-3.11.1-97.fc18 has been pushed to the Fedora 18 stable repository. If problems still persist, please make note of it in this bug report. |