Bug 813206
| Summary: | Default Spacewalk 1.7 install - selinux prevents 'cobbler sync' | ||
|---|---|---|---|
| Product: | [Fedora] Fedora EPEL | Reporter: | Morgan Cox <morgancoxuk> |
| Component: | cobbler | Assignee: | James C. <jimi> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | urgent | Docs Contact: | |
| Priority: | high | ||
| Version: | el6 | CC: | awood, dgoodwin, jhutar, jimi, jpazdziora, mgrepl, shenson, vanmeeuwen+fedora |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | 2.2.3 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-06-06 12:32:21 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
Morgan Cox
2012-04-17 08:50:57 UTC
What are the AVC denials in /var/log/audit/audit.log? Hi
type=AVC msg=audit(1334654492.334:43893): avc: denied { write } for pid=3403 comm="cobblerd" name="cobbler" dev=md2 ino=2229490 scontext=system_u:system_r:cobblerd_t:s0 tcontext=system_u:object_r:httpd_cobbler_content_t:s0 tclass=dir
type=SYSCALL msg=audit(1334654492.334:43893): arch=c000003e syscall=83 success=no exit=-13 a0=7fe3cc0008c0 a1=1ed a2=3e687b3dc8 a3=7fe3dabec6c8 items=0 ppid=1 pid=3403 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="cobblerd" exe="/usr/bin/python" subj=system_u:system_r:cobblerd_t:s0 key=(null)
(I have never really understood SELINUX logs to be honest.....)
Moving to Fedora EPEL / cobbler -- the AVC denial does not show any types / directories owned by Spacewalk. The problem seems to be caused by the fact that unlike the 2.0 rpm, the 2.2 does not contain all the subdirectories of /var/www/cobbler that cobbler would like to use: $ rpm -qlp cobbler-2.2.2-1.el6.noarch.rpm | grep rendered $ rpm -qlp cobbler-2.0.11-2.el6.noarch.rpm | grep rendered /var/www/cobbler/rendered $ If the rpm contained them, they'd be created with correct SELinux context (cobbler_var_lib_t, most probably) upon rpm installation and the daemon would not attempt to create them. We have more issue. 1.#816309 => there are wrong instructions 2. /var/www/cobbler/rendered needs to be owned by cobbler package so it needs to be part of payload 3. probably other issues Scott, had you tested it with SELinux before you pushed a new version of cobbler? We need to fix it ASAP. So any chance you could revert these changes? RHEL6.3 Beta has been published, so this not a good time to make big changes in the policy. I've corrected this in the cobbler.spec and setup.py file, so things should be installed correctly. This patch will be included in cobbler 2.2.3: For now, manually creating the directory and running restorecon on it should get you up and running. If not please open a new issue on the official github issue tracker for cobbler: https://github.com/cobbler/cobbler/issues # from master branch: $ rpm -qif /var/www/cobbler/rendered|grep ^Name Name : cobbler commit 285e3b5183b3b36576a0a60830d5eeaae57c428a Author: James Cammarata <jimi> Date: Mon May 21 19:53:42 2012 -0500 BUGFIX - adding some untracked directories and the new augeas lense to the setup.py and cobbler.spec files *** Bug 819497 has been marked as a duplicate of this bug. *** 2.2.3-1 has been released, which resolves this bug. |