Bug 708582 - 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 708581
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:885b427a985...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-28 07:06 UTC by Nikita Bige
Modified: 2011-05-28 13:47 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-05-28 13:47:18 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Nikita Bige 2011-05-28 07:06:08 UTC
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: rpm_script_tmp_t, usr_t, locale_t, etc_t, gnomesystemmm_exec_t, rpm_tmp_t, system_cronjob_var_lib_t, ld_so_cache_t, policykit_var_lib_t, gnomesystemmm_t, dbusd_etc_t, userdomain, abrt_var_run_t, policykit_reload_t, sysctl_crypto_t, abrt_t, lib_t, system_dbusd_var_lib_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           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                      30bb1c44-86ad-4887-88fc-eac0e2562a15

Raw Audit Messages
type=AVC msg=audit(1306249198.827:695): avc:  denied  { lock } for  pid=1465 comm="ksysguardproces" path="/.config/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.827:695): arch=x86_64 syscall=fcntl success=yes exit=0 a0=3 a1=7 a2=7fffac8e6fa0 a3=1 items=0 ppid=1464 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,lock

audit2allow

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

audit2allow -R

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

Comment 1 Dominick Grift 2011-05-28 09:11:27 UTC
This is a duplicate of #708581

Comment 2 Miroslav Grepl 2011-05-28 13:47:18 UTC

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


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