Bug 702759

Summary: SELinux is preventing /usr/libexec/kde4/ksysguardprocesslist_helper from 'getattr' accesses on the filesystem /usr.
Product: [Fedora] Fedora Reporter: vitor.dominor
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: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:fbc50f14b0d58250f635e2308956d7354e080eb562cb398ff9b58a6ffa97ce38
Fixed In Version: selinux-policy-3.9.7-42.fc14 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-07-12 05:16:59 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 vitor.dominor 2011-05-06 20:58:13 UTC
SELinux is preventing /usr/libexec/kde4/ksysguardprocesslist_helper from 'getattr' accesses on the filesystem /usr.

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

If you believe that ksysguardprocesslist_helper should be allowed getattr access on the usr filesystem 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:fs_t:s0
Target Objects                /usr [ filesystem ]
Source                        ksysguardproces
Source Path                   /usr/libexec/kde4/ksysguardprocesslist_helper
Port                          <Desconhecida>
Host                          (removed)
Source RPM Packages           kdebase-workspace-4.6.2-2.fc14
Target RPM Packages           filesystem-2.4.35-1.fc14
Policy RPM                    selinux-policy-3.9.7-40.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.35.12-90.fc14.x86_64 #1
                              SMP Fri Apr 22 16:01:29 UTC 2011 x86_64 x86_64
Alert Count                   24
First Seen                    Dom 01 Mai 2011 06:38:54 WEST
Last Seen                     Sex 06 Mai 2011 21:56:21 WEST
Local ID                      22caab9b-c995-40c4-87cc-bfbdfb7b4021

Raw Audit Messages
type=AVC msg=audit(1304715381.743:33785): avc:  denied  { getattr } for  pid=4282 comm="ksysguardproces" name="/" dev=dm-6 ino=2 scontext=system_u:system_r:gnomesystemmm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:fs_t:s0 tclass=filesystem


type=SYSCALL msg=audit(1304715381.743:33785): arch=x86_64 syscall=statfs success=no exit=EACCES a0=9bb238 a1=7ffffa386fd0 a2=fffffffffff53ca9 a3=9b1b10 items=0 ppid=4281 pid=4282 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,fs_t,filesystem,getattr

audit2allow

#============= gnomesystemmm_t ==============
allow gnomesystemmm_t fs_t:filesystem getattr;

audit2allow -R

#============= gnomesystemmm_t ==============
allow gnomesystemmm_t fs_t:filesystem getattr;

Comment 1 Miroslav Grepl 2011-05-09 15:52:55 UTC
Fixed in selinux-policy-3.9.7-41.fc14

Comment 2 Fedora Update System 2011-05-27 15:45:54 UTC
selinux-policy-3.9.7-42.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/selinux-policy-3.9.7-42.fc14

Comment 3 Fedora Update System 2011-05-27 20:27:51 UTC
Package selinux-policy-3.9.7-42.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-42.fc14'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/selinux-policy-3.9.7-42.fc14
then log in and leave karma (feedback).

Comment 4 vitor.dominor 2011-06-13 00:28:59 UTC
Haven't verified this, since installing Fedora 15 with selinux-policy-3.9.16-26.fc15.

Comment 5 Fedora Update System 2011-07-12 05:15:17 UTC
selinux-policy-3.9.7-42.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.