Bug 699232 - SELinux is preventing /usr/libexec/kde4/ksysguardprocesslist_helper from 'read' accesses on the file Trolltech.conf.
Summary: SELinux is preventing /usr/libexec/kde4/ksysguardprocesslist_helper from 'rea...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: kdebase-workspace
Version: 15
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Than Ngo
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:a4b2cc1511c...
: 701607 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-04-24 12:23 UTC by Benjamin
Modified: 2011-07-18 14:02 UTC (History)
13 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-05-06 18:18:30 UTC
Type: ---


Attachments (Terms of Use)

Description Benjamin 2011-04-24 12:23:55 UTC
SELinux is preventing /usr/libexec/kde4/ksysguardprocesslist_helper from 'read' accesses on the file Trolltech.conf.

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

If you believe that ksysguardprocesslist_helper should be allowed read access on the Trolltech.conf 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:etc_runtime_t:s0
Target Objects                Trolltech.conf [ file ]
Source                        ksysguardproces
Source Path                   /usr/libexec/kde4/ksysguardprocesslist_helper
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           kdebase-workspace-4.6.1-6.fc15
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.16-13.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
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                   2
First Seen                    Sun 24 Apr 2011 07:10:06 AM CDT
Last Seen                     Sun 24 Apr 2011 07:14:13 AM CDT
Local ID                      3cd2f344-a967-49b5-a289-7050e9aa63e2

Raw Audit Messages
type=AVC msg=audit(1303647253.34:88): avc:  denied  { read } for  pid=2757 comm="ksysguardproces" name="Trolltech.conf" dev=dm-1 ino=2228226 scontext=system_u:system_r:gnomesystemmm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:etc_runtime_t:s0 tclass=file


type=SYSCALL msg=audit(1303647253.34:88): arch=x86_64 syscall=open success=no exit=EACCES a0=9e0888 a1=80000 a2=1b6 a3=7fffecf11720 items=0 ppid=1 pid=2757 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,etc_runtime_t,file,read

audit2allow

#============= gnomesystemmm_t ==============
allow gnomesystemmm_t etc_runtime_t:file read;

audit2allow -R

#============= gnomesystemmm_t ==============
allow gnomesystemmm_t etc_runtime_t:file read;

Comment 1 Daniel Walsh 2011-04-25 13:26:08 UTC
restorecon -R -v /etc

Do you have some kind of tool that Trolltech.conf on boot?

Comment 2 Miroslav Grepl 2011-04-26 07:45:19 UTC
Benjamin,
could you give me also output of 

# ls -lZ /.config

Comment 3 Miroslav Grepl 2011-05-03 11:50:48 UTC
*** Bug 701607 has been marked as a duplicate of this bug. ***

Comment 4 Martin Kho 2011-05-04 11:55:50 UTC
Hi,

Output from ls -lZ /.config gives:

system_u:object_r:etc_runtime_t:s0 Trolltech.conf

Martin Kho

Comment 5 Daniel Walsh 2011-05-06 18:18:30 UTC
If you remove that directory the bug should go away.

rm -rf /.config

It should not be there.  The problem must be that gnomesystemm_t must think its homedir is /?

THe /.config directory looks like some garbage from the install of trolltech.

Comment 6 Miroslav Grepl 2011-05-09 16:11:11 UTC
This is known KDE bug.

Comment 7 Rex Dieter 2011-05-09 17:18:59 UTC
Known... where?  is this documented somewhere (mostly for posterity)...?

Comment 8 Miroslav Grepl 2011-05-09 17:26:26 UTC
Bugs: #694385, #689925.


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