Bug 573070

Summary: SELinux is preventing /bin/ps "read" access on stat.
Product: [Fedora] Fedora Reporter: Andrew Jamison <linux>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 13CC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:e9a30291269cd155e2e00013f2fa9625379cb39add49c5c5773de28624bacc67
Fixed In Version: selinux-policy-3.7.14-3.fc13 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-03-20 03:35: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 Andrew Jamison 2010-03-12 19:01:42 UTC
Summary:

SELinux is preventing /bin/ps "read" access on stat.

Detailed Description:

[SELinux is in permissive mode. 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://docs.fedoraproject.org/selinux-faq-fc5/#id2961385) Please file a bug
report.

Additional Information:

Source Context                system_u:system_r:ipsec_mgmt_t:s0
Target Context                system_u:system_r:kernel_t:s0
Target Objects                stat [ file ]
Source                        ps
Source Path                   /bin/ps
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           procps-3.2.8-7.fc13
Target RPM Packages           
Policy RPM                    selinux-policy-3.7.10-3.fc13
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.33-0.52.rc8.git6.fc13.x86_64 #1 SMP Tue Feb 23
                              04:52:05 UTC 2010 x86_64 x86_64
Alert Count                   2
First Seen                    Fri 12 Mar 2010 12:26:50 PM EST
Last Seen                     Fri 12 Mar 2010 12:26:50 PM EST
Local ID                      c268dea8-9c2e-4b0a-b6bd-cbc4bb3745ec
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1268414810.764:172): avc:  denied  { read } for  pid=17050 comm="ps" name="stat" dev=proc ino=9242 scontext=system_u:system_r:ipsec_mgmt_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=file

node=(removed) type=AVC msg=audit(1268414810.764:172): avc:  denied  { open } for  pid=17050 comm="ps" name="stat" dev=proc ino=9242 scontext=system_u:system_r:ipsec_mgmt_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=file

node=(removed) type=SYSCALL msg=audit(1268414810.764:172): arch=c000003e syscall=2 success=yes exit=5 a0=33e7011840 a1=0 a2=0 a3=0 items=0 ppid=17011 pid=17050 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:ipsec_mgmt_t:s0 key=(null)



Hash String generated from  catchall,ps,ipsec_mgmt_t,kernel_t,file,read
audit2allow suggests:

#============= ipsec_mgmt_t ==============
allow ipsec_mgmt_t kernel_t:file { read open };

Comment 1 Daniel Walsh 2010-03-12 19:08:15 UTC
Fixed in selinux-policy-3.7.13-4.fc13.noarch

Comment 2 Daniel Walsh 2010-03-12 19:09:05 UTC
*** Bug 573071 has been marked as a duplicate of this bug. ***

Comment 3 Fedora Update System 2010-03-12 19:44:39 UTC
selinux-policy-3.7.14-1.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/selinux-policy-3.7.14-1.fc13

Comment 4 Fedora Update System 2010-03-14 13:38:35 UTC
selinux-policy-3.7.14-3.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.14-3.fc13

Comment 5 Fedora Update System 2010-03-20 03:34:45 UTC
selinux-policy-3.7.14-3.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.