Bug 974426 - SELinux is preventing ps from 'getattr' accesses on the directory /proc/<pid>.
Summary: SELinux is preventing ps from 'getattr' accesses on the directory /proc/<pid>.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 18
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:b27c0c68e5ef0b830870d034989...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-06-14 07:47 UTC by Lastecoueres
Modified: 2013-07-25 00:40 UTC (History)
3 users (show)

Fixed In Version: selinux-policy-3.11.1-98.fc18
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-07-25 00:40:10 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.