Bug 873916 - SELinux is preventing /usr/libexec/kde4/ksysguardprocesslist_helper from 'lock' accesses on the file /.config/Trolltech.conf.
Summary: SELinux is preventing /usr/libexec/kde4/ksysguardprocesslist_helper from 'loc...
Keywords:
Status: CLOSED DUPLICATE of bug 694385
Alias: None
Product: Fedora
Classification: Fedora
Component: kde-workspace
Version: 17
Hardware: i686
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Than Ngo
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:885b427a9857fe436c0ac5279bc...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-11-06 23:57 UTC by ziomaul
Modified: 2012-11-07 14:20 UTC (History)
11 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-11-07 14:20:57 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: type (9 bytes, text/plain)
2012-11-06 23:57 UTC, ziomaul
no flags Details

Description ziomaul 2012-11-06 23:57:14 UTC
Additional info:
libreport version: 2.0.18
kernel:         3.6.3-1.fc17.i686

description:
:SELinux is preventing /usr/libexec/kde4/ksysguardprocesslist_helper from 'lock' accesses on the file /.config/Trolltech.conf.
:
:*****  Plugin catchall_labels (83.8 confidence) suggests  ********************
:
:If you want to allow ksysguardprocesslist_helper to have lock 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: machineid_t, system_dbusd_var_lib_t, abrt_var_run_t, cfengine_var_log_t, locale_t, etc_t, proc_t, user_cron_spool_t, usr_t, sysctl_crypto_t, system_cronjob_var_lib_t, policykit_var_lib_t, gnomesystemmm_exec_t, gnomesystemmm_t, logfile, userdomain, abrt_t, lib_t, cpu_online_t, dbusd_etc_t, userdomain, policykit_reload_t, config_usr_t, puppet_tmp_t, fail2ban_var_lib_t, rpm_script_tmp_t, ld_so_cache_t, root_t. 
:Then execute: 
:restorecon -v '/.config/Trolltech.conf'
:
:
:*****  Plugin catchall (17.1 confidence) suggests  ***************************
:
:If you believe that ksysguardprocesslist_helper should be allowed lock 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.9.2-3.fc17.i686
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-156.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Permissive
:Host Name                     (removed)
:Platform                      Linux (removed) 3.6.3-1.fc17.i686 #1 SMP Mon Oct
:                              22 16:10:29 UTC 2012 i686 i686
:Alert Count                   1
:First Seen                    2012-11-07 00:52:27 CET
:Last Seen                     2012-11-07 00:52:27 CET
:Local ID                      aa82b497-63fe-474d-8b3d-80d9ac1844b6
:
:Raw Audit Messages
:type=AVC msg=audit(1352245947.53:87): avc:  denied  { lock } for  pid=3235 comm="ksysguardproces" path="/.config/Trolltech.conf" dev="dm-1" ino=786435 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(1352245947.53:87): arch=i386 syscall=fcntl64 success=yes exit=0 a0=3 a1=7 a2=bf857df0 a3=1 items=0 ppid=3234 pid=3235 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,lock
:
:audit2allow
:
:#============= gnomesystemmm_t ==============
:allow gnomesystemmm_t default_t:file lock;
:
:audit2allow -R
:
:#============= gnomesystemmm_t ==============
:allow gnomesystemmm_t default_t:file lock;
:


Potential duplicate bug: 708582

Comment 1 ziomaul 2012-11-06 23:57:25 UTC
Created attachment 639694 [details]
File: type

Comment 2 Miroslav Grepl 2012-11-07 09:52:23 UTC
You can make this working using

# rm -rf /.config

AFAIK it has been fixed in KDE.

Comment 3 ziomaul 2012-11-07 11:25:23 UTC
(In reply to comment #2)
> You can make this working using
> 
> # rm -rf /.config
> 
> AFAIK it has been fixed in KDE.

Config is OK.

Other solution?

Comment 4 Rex Dieter 2012-11-07 14:20:57 UTC
This update should fix it,
https://admin.fedoraproject.org/updates/FEDORA-2012-17214/qt-4.8.3-7.fc17

*** 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.