Bug 1038770

Summary: Additional SELinux settings to allow cobbler 2.4 to function
Product: Red Hat Enterprise Linux 6 Reporter: Jonathan Underwood <jonathan.underwood>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED DUPLICATE QA Contact: Milos Malik <mmalik>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.4CC: dwalsh, mgrepl, mmalik
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-02-25 12:25:53 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:
Attachments:
Description Flags
Audit messages without the custom module none

Description Jonathan Underwood 2013-12-05 19:29:30 UTC
Created attachment 833305 [details]
Audit messages without the custom module

Description of problem:
I needed to generate a custom module to successfully use cobbler on rhel 6.4 with SELinux in enforcing mode. The module is:


module cobbler_local 1.0;

require {
        type httpd_sys_content_t;
        type etc_t;
        type cobblerd_t;
        class lnk_file { read getattr };
        class file write;
        class dir read;
}

#============= cobblerd_t ==============
allow cobblerd_t etc_t:file write;
allow cobblerd_t httpd_sys_content_t:dir read;
allow cobblerd_t httpd_sys_content_t:lnk_file { read getattr };



Version-Release number of selected component (if applicable):
# rpm -qa | grep selinux
ipa-server-selinux-3.0.0-26.el6_4.4.x86_64
libselinux-python-2.0.94-5.3.el6_4.1.x86_64
libselinux-2.0.94-5.3.el6_4.1.x86_64
selinux-policy-targeted-3.7.19-195.el6_4.18.noarch
libselinux-ruby-2.0.94-5.3.el6_4.1.x86_64
libselinux-utils-2.0.94-5.3.el6_4.1.x86_64
selinux-policy-3.7.19-195.el6_4.18.noarch
pki-selinux-9.0.3-30.el6.noarch

# rpm -qa | grep cobbler
cobbler-2.4.0-1.el6.noarch


I'll attach the audit messages.

Comment 2 Miroslav Grepl 2015-02-25 12:25:53 UTC

*** This bug has been marked as a duplicate of bug 816309 ***