Bug 743804

Summary: SELinux is preventing /var/lib/boinc/projects/www.worldcommunitygrid.org/wcg_dsfl_6.19_i686-pc-linux-gnu from 'getattr' accesses on the file /proc/<pid>/stat.
Product: [Fedora] Fedora Reporter: Pavel Ondračka <pavel.ondracka>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 14CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:3c63d1325cce51a491cd9e7e82d9771892d8d2c579d55a2c5fc96f56bf02f186
Fixed In Version: selinux-policy-3.9.7-46.fc14 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-10-30 00:34:40 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Pavel Ondračka 2011-10-06 06:39:00 UTC
SELinux is preventing /var/lib/boinc/projects/www.worldcommunitygrid.org/wcg_dsfl_6.19_i686-pc-linux-gnu from 'getattr' accesses on the file /proc/<pid>/stat.

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

If you believe that wcg_dsfl_6.19_i686-pc-linux-gnu should be allowed getattr access on the stat file 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 wcg_dsfl_6.19_i /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:boinc_project_t:s0
Target Context                system_u:system_r:readahead_t:s0
Target Objects                /proc/<pid>/stat [ file ]
Source                        wcg_dsfl_6.19_i
Source Path                   /var/lib/boinc/projects/www.worldcommunitygrid.org
                              /wcg_dsfl_6.19_i686-pc-linux-gnu
Port                          <Neznámé>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.7-44.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 2.6.35.14-96.fc14.i686 #1 SMP Thu
                              Sep 1 12:49:38 UTC 2011 i686 i686
Alert Count                   1
First Seen                    Čt 6. říjen 2011, 08:37:33 CEST
Last Seen                     Čt 6. říjen 2011, 08:37:33 CEST
Local ID                      d32eb827-b315-4b7c-a878-240e354e5eee

Raw Audit Messages
type=AVC msg=audit(1317883053.964:24170): avc:  denied  { getattr } for  pid=1507 comm="wcg_dsfl_6.19_i" path="/proc/1737/stat" dev=proc ino=15617 scontext=system_u:system_r:boinc_project_t:s0 tcontext=system_u:system_r:readahead_t:s0 tclass=file


type=SYSCALL msg=audit(1317883053.964:24170): arch=i386 syscall=fstat64 success=yes exit=0 a0=a a1=bfb76e84 a2=bfb76e0c a3=4 items=0 ppid=1452 pid=1507 auid=4294967295 uid=492 gid=487 euid=492 suid=492 fsuid=492 egid=487 sgid=487 fsgid=487 tty=(none) ses=4294967295 comm=wcg_dsfl_6.19_i exe=/var/lib/boinc/projects/www.worldcommunitygrid.org/wcg_dsfl_6.19_i686-pc-linux-gnu subj=system_u:system_r:boinc_project_t:s0 key=(null)

Hash: wcg_dsfl_6.19_i,boinc_project_t,readahead_t,file,getattr

audit2allow

#============= boinc_project_t ==============
allow boinc_project_t readahead_t:file getattr;

audit2allow -R

#============= boinc_project_t ==============
allow boinc_project_t readahead_t:file getattr;

Comment 1 Miroslav Grepl 2011-10-20 08:54:22 UTC
Fixed in selinux-policy-3.9.7-46.fc14

Comment 2 Fedora Update System 2011-10-20 11:58:41 UTC
selinux-policy-3.9.7-46.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/selinux-policy-3.9.7-46.fc14

Comment 3 Fedora Update System 2011-10-22 08:21:59 UTC
Package selinux-policy-3.9.7-46.fc14:
* should fix your issue,
* was pushed to the Fedora 14 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.9.7-46.fc14'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2011-14734
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2011-10-30 00:34:40 UTC
selinux-policy-3.9.7-46.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.