Bug 974426

Summary: SELinux is preventing ps from 'getattr' accesses on the directory /proc/<pid>.
Product: [Fedora] Fedora Reporter: Lastecoueres <PX9e>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 18CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:b27c0c68e5ef0b830870d03498979c039184b9821f4438c5445a2de4babbfdd5
Fixed In Version: selinux-policy-3.11.1-98.fc18 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-07-25 00:40:10 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 Lastecoueres 2013-06-14 07:47:00 UTC
Description of problem:
SELinux is preventing ps from 'getattr' accesses on the directory /proc/<pid>.

*****  Plugin catchall (100. confidence) suggests  ***************************

If you believe that ps should be allowed getattr access on the <pid> directory by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
# grep ps /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:httpd_t:s0
Target Context                system_u:system_r:abrt_watch_log_t:s0
Target Objects                /proc/<pid> [ dir ]
Source                        ps
Source Path                   ps
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.11.1-97.fc18.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 3.9.4-200.fc18.x86_64 #1 SMP Fri
                              May 24 20:10:49 UTC 2013 x86_64 x86_64
Alert Count                   1
First Seen                    2013-06-14 09:35:55 CEST
Last Seen                     2013-06-14 09:35:55 CEST
Local ID                      f8071026-63f0-4889-b43f-8d12af51caf8

Raw Audit Messages
type=AVC msg=audit(1371195355.984:409): avc:  denied  { getattr } for  pid=2161 comm="ps" path="/proc/618" dev="proc" ino=16798 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:system_r:abrt_watch_log_t:s0 tclass=dir


Hash: ps,httpd_t,abrt_watch_log_t,dir,getattr

audit2allow

#============= httpd_t ==============
allow httpd_t abrt_watch_log_t:dir getattr;

audit2allow -R
require {
	type httpd_t;
	type abrt_watch_log_t;
	class dir getattr;
}

#============= httpd_t ==============
allow httpd_t abrt_watch_log_t:dir getattr;


Additional info:
reporter:       libreport-2.1.4
hashmarkername: setroubleshoot
kernel:         3.9.4-200.fc18.x86_64
type:           libreport

Comment 1 Daniel Walsh 2013-06-15 11:08:03 UTC
Are you running passenger?

Comment 2 Daniel Walsh 2013-06-15 11:10:13 UTC
ee26cfb299f81dc2302b46b5ac3f9fa0d2f6f2bd add dontaudit for this.

Comment 3 Fedora Update System 2013-06-27 13:36:08 UTC
selinux-policy-3.11.1-98.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/selinux-policy-3.11.1-98.fc18

Comment 4 Fedora Update System 2013-06-28 06:10:14 UTC
Package selinux-policy-3.11.1-98.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.11.1-98.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-11859/selinux-policy-3.11.1-98.fc18
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2013-07-25 00:40:10 UTC
selinux-policy-3.11.1-98.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.