Bug 694384

Summary: SELinux is preventing /usr/libexec/kde4/ksysguardprocesslist_helper from 'read' accesses on the file stat.
Product: [Fedora] Fedora Reporter: Maxim Prohorenko <maxim.prohorenko>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 15CC: diego.ml, dwalsh, john, mgrepl, mr.erdk, petar.mijatovic, suren
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:0f287df6614df1db0fb6ffbaf0e49b8b1e9759a59996b5d94b02673ad4fb4be1
Fixed In Version: selinux-policy-3.9.16-15.fc15 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-04-15 21:33: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:

Description Maxim Prohorenko 2011-04-07 07:43:14 UTC
SELinux is preventing /usr/libexec/kde4/ksysguardprocesslist_helper from 'read' accesses on the file stat.

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

If you believe that ksysguardprocesslist_helper should be allowed read 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 ksysguardproces /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:gnomesystemmm_t:s0-s0:c0.c1023
Target Context                system_u:object_r:proc_t:s0
Target Objects                stat [ file ]
Source                        ksysguardproces
Source Path                   /usr/libexec/kde4/ksysguardprocesslist_helper
Port                          <Неизвестно>
Host                          (removed)
Source RPM Packages           kdebase-workspace-4.6.1-6.fc15
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.16-10.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 2.6.38.2-9.fc15.x86_64
                              #1 SMP Wed Mar 30 16:55:57 UTC 2011 x86_64 x86_64
Alert Count                   1
First Seen                    Срд 06 Апр 2011 11:35:33
Last Seen                     Срд 06 Апр 2011 11:35:33
Local ID                      70bf3074-7439-4687-9275-fcd426c30bf0

Raw Audit Messages
type=AVC msg=audit(1302075333.12:452): avc:  denied  { read } for  pid=18890 comm="ksysguardproces" name="stat" dev=proc ino=4026532009 scontext=system_u:system_r:gnomesystemmm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:proc_t:s0 tclass=file


type=AVC msg=audit(1302075333.12:452): avc:  denied  { open } for  pid=18890 comm="ksysguardproces" name="stat" dev=proc ino=4026532009 scontext=system_u:system_r:gnomesystemmm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:proc_t:s0 tclass=file


type=SYSCALL msg=audit(1302075333.12:452): arch=x86_64 syscall=open success=yes exit=EACCES a0=3b1135a8f2 a1=80000 a2=1ffffa72a483 a3=0 items=0 ppid=1 pid=18890 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=ksysguardproces exe=/usr/libexec/kde4/ksysguardprocesslist_helper subj=system_u:system_r:gnomesystemmm_t:s0-s0:c0.c1023 key=(null)

Hash: ksysguardproces,gnomesystemmm_t,proc_t,file,read

audit2allow

#============= gnomesystemmm_t ==============
allow gnomesystemmm_t proc_t:file { read open };

audit2allow -R

#============= gnomesystemmm_t ==============
allow gnomesystemmm_t proc_t:file { read open };

Comment 1 Miroslav Grepl 2011-04-07 09:27:04 UTC
Fixed in selinux-policy-3.9.16-13.fc15

Comment 2 Fedora Update System 2011-04-11 20:38:19 UTC
selinux-policy-3.9.16-14.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/selinux-policy-3.9.16-14.fc15

Comment 3 Fedora Update System 2011-04-13 04:53:44 UTC
Package selinux-policy-3.9.16-14.fc15:
* should fix your issue,
* was pushed to the Fedora 15 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.16-14.fc15'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/selinux-policy-3.9.16-14.fc15
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2011-04-13 19:48:20 UTC
selinux-policy-3.9.16-15.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/selinux-policy-3.9.16-15.fc15

Comment 5 Fedora Update System 2011-04-15 21:31:46 UTC
selinux-policy-3.9.16-15.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.