Bug 543945

Summary: SELinux is preventing mysqld_safe (mysqld_safe_t) "search" httpd_sys_content_t.
Product: [Fedora] Fedora Reporter: Gwyn Ciesla <gwync>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 12CC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:93b218e7c94e9e061d21d77f3c8120c7121df4cbd5734dc512fe3ebab5c9207b
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-12-23 14:18:36 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 Gwyn Ciesla 2009-12-03 14:57:50 UTC
Summary:

SELinux is preventing mysqld_safe (mysqld_safe_t) "search" httpd_sys_content_t.

Detailed Description:

[mysqld_safe has a permissive type (mysqld_safe_t). This access was not denied.]

SELinux denied access requested by mysqld_safe. It is not expected that this
access is required by mysqld_safe and this access may signal an intrusion
attempt. It is also possible that the specific version or configuration of the
application is causing it to require additional access.

Allowing Access:

You can generate a local policy module to allow this access - see FAQ
(http://fedora.redhat.com/docs/selinux-faq-fc5/#id2961385) Or you can disable
SELinux protection altogether. Disabling SELinux protection is not recommended.
Please file a bug report (http://bugzilla.redhat.com/bugzilla/enter_bug.cgi)
against this package.

Additional Information:

Source Context                unconfined_u:system_r:mysqld_safe_t:s0
Target Context                system_u:object_r:httpd_sys_content_t:s0
Target Objects                drupal [ dir ]
Source                        mysqld_safe
Source Path                   /bin/bash
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           bash-4.0-8.fc11
Target RPM Packages           
Policy RPM                    selinux-policy-3.6.12-85.fc11
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed) 2.6.30.9-90.fc11.i686.PAE #1 SMP
                              Sat Oct 17 11:24:32 EDT 2009 i686 athlon
Alert Count                   2
First Seen                    Wed 04 Nov 2009 04:23:28 PM CST
Last Seen                     Wed 04 Nov 2009 04:23:28 PM CST
Local ID                      8c8159c3-cec5-45cc-8e4f-4cd5326c8011
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1257373408.822:28045): avc:  denied  { search } for  pid=2720 comm="mysqld_safe" name="drupal" dev=dm-1 ino=245804 scontext=unconfined_u:system_r:mysqld_safe_t:s0 tcontext=system_u:object_r:httpd_sys_content_t:s0 tclass=dir

node=(removed) type=AVC msg=audit(1257373408.822:28045): avc:  denied  { getattr } for  pid=2720 comm="mysqld_safe" path="/usr/share/drupal/includes" dev=dm-1 ino=245805 scontext=unconfined_u:system_r:mysqld_safe_t:s0 tcontext=system_u:object_r:httpd_sys_content_t:s0 tclass=dir

node=(removed) type=SYSCALL msg=audit(1257373408.822:28045): arch=40000003 syscall=195 success=yes exit=0 a0=8d8d660 a1=bfe155a0 a2=61aff4 a3=0 items=0 ppid=2638 pid=2720 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts0 ses=1 comm="mysqld_safe" exe="/bin/bash" subj=unconfined_u:system_r:mysqld_safe_t:s0 key=(null)



Hash String generated from  selinux-policy-3.6.12-85.fc11,catchall,mysqld_safe,mysqld_safe_t,httpd_sys_content_t,dir,search
audit2allow suggests:

#============= mysqld_safe_t ==============
allow mysqld_safe_t httpd_sys_content_t:dir { search getattr };

Comment 1 Daniel Walsh 2009-12-23 14:18:36 UTC

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