Bug 708581

Summary: SELinux is preventing /usr/libexec/kde4/ksysguardprocesslist_helper from 'write' accesses on the file /.config/Trolltech.conf.
Product: [Fedora] Fedora Reporter: Nikita Bige <bignikita>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 15CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:ca9aaa4b4cd5103a27045ccf224a3f96374f8e77cf56d8fc03becef7390bf11a
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-29 20:34:12 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 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 ***