Bug 770130

Summary: SELinux is preventing /usr/libexec/kde4/ksysguardprocesslist_helper from 'getattr' accesses on the file /.config/Trolltech.conf.
Product: [Fedora] Fedora Reporter: Colin J Thomson <colin.thomson>
Component: kdebaseAssignee: Than Ngo <than>
Status: CLOSED CANTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: dominick.grift, dwalsh, jreznik, kevin, ltinkl, mgrepl, rdieter, rnovacek, ry, smparrish, than
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:8e9ba9a37d2eaf2e8fada6c57b53a0667592585b7ea582c628bf1fe89c3096dd
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-01-02 11:07:03 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 Colin J Thomson 2011-12-23 14:24:38 UTC
libreport version: 2.0.8
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.1.5-6.fc16.x86_64
reason:         SELinux is preventing /usr/libexec/kde4/ksysguardprocesslist_helper from 'getattr' accesses on the file /.config/Trolltech.conf.
time:           Fri 23 Dec 2011 02:24:00 PM GMT

description:
:SELinux is preventing /usr/libexec/kde4/ksysguardprocesslist_helper from 'getattr' accesses on the file /.config/Trolltech.conf.
:
:*****  Plugin catchall_labels (83.8 confidence) suggests  ********************
:
:If you want to allow ksysguardprocesslist_helper to have getattr 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: abrt_var_run_t, policykit_auth_exec_t, sysctl_crypto_t, dbusd_etc_t, locale_t, userdomain, usr_t, etc_t, proc_t, system_cronjob_var_lib_t, gnomesystemmm_exec_t, policykit_var_lib_t, abrt_t, lib_t, ld_so_t, sysfs_t, abrt_helper_exec_t, gnomesystemmm_t, userdomain, textrel_shlib_t, system_dbusd_var_lib_t, rpm_script_tmp_t, policykit_reload_t, ld_so_cache_t, sosreport_tmp_t, abrt_var_cache_t, rpm_tmp_t. 
:Then execute: 
:restorecon -v '/.config/Trolltech.conf'
:
:
:*****  Plugin catchall (17.1 confidence) suggests  ***************************
:
:If you believe that ksysguardprocesslist_helper should be allowed getattr 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           ksysguard-4.7.90-2.fc16
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-64.fc16
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.1.5-6.fc16.x86_64 #1 SMP Thu Dec 15
:                              16:14:44 UTC 2011 x86_64 x86_64
:Alert Count                   2
:First Seen                    Thu 22 Dec 2011 01:21:33 AM GMT
:Last Seen                     Thu 22 Dec 2011 01:21:33 AM GMT
:Local ID                      b1533951-9630-478e-9320-6079a32783a0
:
:Raw Audit Messages
:type=AVC msg=audit(1324516893.398:126): avc:  denied  { getattr } for  pid=2702 comm="ksysguardproces" path="/.config/Trolltech.conf" dev=md1 ino=3407874 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(1324516893.398:126): arch=x86_64 syscall=stat success=no exit=EACCES a0=2525698 a1=7fff9db95bd0 a2=7fff9db95bd0 a3=0 items=0 ppid=2701 pid=2702 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,getattr
:
:audit2allow
:
:#============= gnomesystemmm_t ==============
:allow gnomesystemmm_t default_t:file getattr;
:
:audit2allow -R
:
:#============= gnomesystemmm_t ==============
:allow gnomesystemmm_t default_t:file getattr;
:

Comment 1 Miroslav Grepl 2012-01-02 11:07:03 UTC
This is a bug in KDE.

You can allow it for now using

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


Then it will work.