Bug 749699

Summary: Targeted policy should include drupal7 default contexts
Product: [Fedora] Fedora Reporter: Paul W. Frields <stickster>
Component: selinux-policy-targetedAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED RAWHIDE QA Contact: Ben Levenson <benl>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: dwalsh, gwync
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-10-31 13:51:26 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Paul W. Frields 2011-10-28 00:33:23 UTC
Currently the targeted policy file_contexts includes:
/etc/drupal(6)?(/.*)?	system_u:object_r:httpd_sys_rw_content_t:s0
/var/lib/drupal(6)?(/.*)?	system_u:object_r:httpd_sys_rw_content_t:s0
/usr/share/drupal(6)?(/.*)?	system_u:object_r:httpd_sys_content_t:s0

This should be amended to include contexts for the drupal7 package:
/etc/drupal([67])?(/.*)?	system_u:object_r:httpd_sys_rw_content_t:s0
/var/lib/drupal([67])?(/.*)?	system_u:object_r:httpd_sys_rw_content_t:s0
/usr/share/drupal([67])?(/.*)?	system_u:object_r:httpd_sys_content_t:s0

Comment 1 Paul W. Frields 2011-10-28 00:35:00 UTC
This bug affects F15+, hopefully we can provide the fix in all of them?

Comment 2 Daniel Walsh 2011-10-28 13:42:26 UTC
I am willing to take a chance on.

/etc/drupal.* system_u:object_r:httpd_sys_rw_content_t:s0
/var/lib/drupal.* system_u:object_r:httpd_sys_rw_content_t:s0
/usr/share/drupal.* system_u:object_r:httpd_sys_content_t:s0

Fixed in selinux-policy-3.10.0-53.fc16

We need this for F15 and probably RHEL6 and maybe RHEL5.

Comment 3 Miroslav Grepl 2011-10-31 13:51:26 UTC
We have this in RHEL6. Fixed in F15.