Bug 708581 - SELinux is preventing /usr/libexec/kde4/ksysguardprocesslist_helper from 'write' accesses on the file /.config/Trolltech.conf.
Summary: SELinux is preventing /usr/libexec/kde4/ksysguardprocesslist_helper from 'wri...
Keywords:
Status: CLOSED DUPLICATE of bug 694385
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 15
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:ca9aaa4b4cd...
: 708582 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-28 07:04 UTC by Nikita Bige
Modified: 2011-05-29 20:34 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-05-29 20:34:12 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Nikita Bige 2011-05-28 07:04:42 UTC
SELinux is preventing /usr/libexec/kde4/ksysguardprocesslist_helper from 'write' accesses on the file /.config/Trolltech.conf.

*****  Plugin catchall_labels (83.8 confidence) suggests  ********************

If you want to allow ksysguardprocesslist_helper to have write access on the Trolltech.conf file
Then you need to change the label on /.config/Trolltech.conf
Do
# semanage fcontext -a -t FILE_TYPE '/.config/Trolltech.conf'
where FILE_TYPE is one of the following: gnomesystemmm_t, afs_cache_t. 
Then execute: 
restorecon -v '/.config/Trolltech.conf'


*****  Plugin catchall (17.1 confidence) suggests  ***************************

If you believe that ksysguardprocesslist_helper should be allowed write 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:default_t:s0
Target Objects                /.config/Trolltech.conf [ file ]
Source                        ksysguardproces
Source Path                   /usr/libexec/kde4/ksysguardprocesslist_helper
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           kdebase-workspace-4.6.3-5.fc14
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.7-40.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 2.6.35.13-91.fc14.x86_64 #1 SMP Tue May
                              3 13:23:06 UTC 2011 x86_64 x86_64
Alert Count                   1
First Seen                    Tue 24 May 2011 06:59:58 PM MSD
Last Seen                     Tue 24 May 2011 06:59:58 PM MSD
Local ID                      2b2a0941-ea54-4129-84d7-d081db3b9d39

Raw Audit Messages
type=AVC msg=audit(1306249198.845:696): avc:  denied  { write } for  pid=1465 comm="ksysguardproces" name="Trolltech.conf" dev=dm-0 ino=457858 scontext=system_u:system_r:gnomesystemmm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:default_t:s0 tclass=file


type=SYSCALL msg=audit(1306249198.845:696): arch=x86_64 syscall=open success=yes exit=EFAULT a0=1daf688 a1=80042 a2=1b6 a3=1d6cb10 items=0 ppid=1 pid=1465 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,default_t,file,write

audit2allow

#============= gnomesystemmm_t ==============
allow gnomesystemmm_t default_t:file write;

audit2allow -R

#============= gnomesystemmm_t ==============
allow gnomesystemmm_t default_t:file write;

Comment 1 Dominick Grift 2011-05-28 09:09:08 UTC
This is a bug in "kde-workspace": Please see #689925

Comment 2 Miroslav Grepl 2011-05-28 13:47:18 UTC
*** Bug 708582 has been marked as a duplicate of this bug. ***

Comment 3 Miroslav Grepl 2011-05-29 20:34:12 UTC
Yes, this is KDE bug.

You can allow it for now using

# semanage fcontext -a -e /usr/share/kde4 /.config
# restorecon -R -v /.config

*** This bug has been marked as a duplicate of bug 694385 ***


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