Bug 579553

Summary: httpd policy has dirsrv specific file contexts set
Product: [Fedora] Fedora Reporter: Nathan Kinder <nkinder>
Component: selinux-policy-targetedAssignee: Daniel Walsh <dwalsh>
Status: CLOSED ERRATA QA Contact: Ben Levenson <benl>
Severity: high Docs Contact:
Priority: low    
Version: 13CC: rmeggins
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: selinux-policy-3.7.19-2.fc13 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-04-21 22:00:24 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Nathan Kinder 2010-04-05 20:04:21 UTC
In F13, it appears that the following file contexts are set as part of the base policy:

  /usr/share/dirsrv(/.*)?	system_u:object_r:httpd_sys_content_t:s0
  /usr/lib/dirsrv/cgi-bin(/.*)?	system_u:object_r:httpd_sys_script_exec_t:s0

These cause conflicts with the dirsrv-admin policy that is provided by 389.  Our module labels these with dirsrv specific contexts and extends the httpd policy to allow it to have the proper access.  An attempt to install the dirsrv-admin policy on F13 results in this error:

  /etc/selinux/targeted/contexts/files/file_contexts: Multiple different
  specifications for /usr/lib/dirsrv/cgi-bin(/.*)?  
  (system_u:object_r:httpd_dirsrvadmin_script_exec_t:s0 and 
  system_u:object_r:httpd_sys_script_exec_t:s0).
  /etc/selinux/targeted/contexts/files/file_contexts: Invalid argument
  libsemanage.semanage_install_active: setfiles returned error code 1.
  semodule:  Failed!

I would like these file labelling rules removed from the base policy to allow the 389 policy module to work properly.

Comment 1 Daniel Walsh 2010-04-06 13:09:09 UTC
I will remove in next release.

Fixed in selinux-policy-3.7.18-1.fc13.noarch

Comment 2 Fedora Update System 2010-04-19 02:40:41 UTC
selinux-policy-3.7.19-2.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/selinux-policy-3.7.19-2.fc13

Comment 3 Fedora Update System 2010-04-20 13:24:55 UTC
selinux-policy-3.7.19-2.fc13 has been pushed to the Fedora 13 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update selinux-policy'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/selinux-policy-3.7.19-2.fc13

Comment 4 Fedora Update System 2010-04-21 21:58:56 UTC
selinux-policy-3.7.19-2.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.