Bug 579553 - httpd policy has dirsrv specific file contexts set
Summary: httpd policy has dirsrv specific file contexts set
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy-targeted
Version: 13
Hardware: All
OS: Linux
low
high
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-04-05 20:04 UTC by Nathan Kinder
Modified: 2010-04-21 22:00 UTC (History)
1 user (show)

Fixed In Version: selinux-policy-3.7.19-2.fc13
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-04-21 22:00:24 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.