Bug 542283

Summary: SELinux is preventing ps (mysqld_safe_t) "getattr" virtd_t.
Product: [Fedora] Fedora Reporter: Runwalsoft <m_runwal>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 12CC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:2c4e53d87d13412a2de18b8cb7031f3506ed90b14765fceffa92196d9d6ba4c2
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-11-30 11:26:55 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 Runwalsoft 2009-11-29 05:17:54 UTC
Summary:

SELinux is preventing ps (mysqld_safe_t) "getattr" virtd_t.

Detailed Description:

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

SELinux denied access requested by ps. It is not expected that this access is
required by ps 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                system_u:system_r:mysqld_safe_t:s0
Target Context                system_u:system_r:virtd_t:s0-s0:c0.c1023
Target Objects                /proc/<pid> [ dir ]
Source                        ps
Source Path                   /bin/ps
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           procps-3.2.7-27.fc11
Target RPM Packages           
Policy RPM                    selinux-policy-3.6.12-86.fc11
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed) 2.6.30.9-96.fc11.i586 #1 SMP Tue
                              Nov 3 23:33:04 EST 2009 i686 i686
Alert Count                   1
First Seen                    Mon 16 Nov 2009 03:59:54 PM IST
Last Seen                     Mon 16 Nov 2009 03:59:54 PM IST
Local ID                      52f01301-0246-492a-a50e-74246a4ec76b
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1258367394.52:234): avc:  denied  { getattr } for  pid=7022 comm="ps" path="/proc/2045" dev=proc ino=71859 scontext=system_u:system_r:mysqld_safe_t:s0 tcontext=system_u:system_r:virtd_t:s0-s0:c0.c1023 tclass=dir

node=(removed) type=SYSCALL msg=audit(1258367394.52:234): arch=40000003 syscall=195 success=yes exit=0 a0=a07a97c a1=bf9932cc a2=af9ff4 a3=3 items=0 ppid=7021 pid=7022 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="ps" exe="/bin/ps" subj=system_u:system_r:mysqld_safe_t:s0 key=(null)



Hash String generated from  selinux-policy-3.6.12-86.fc11,catchall,ps,mysqld_safe_t,virtd_t,dir,getattr
audit2allow suggests:

#============= mysqld_safe_t ==============
allow mysqld_safe_t virtd_t:dir getattr;

Comment 1 Miroslav Grepl 2009-11-30 11:26:55 UTC

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