Bug 747310 - SELinux is preventing /usr/libexec/kde4/kcmdatetimehelper from 'read' accesses on the file /.config/Trolltech.conf.
Summary: SELinux is preventing /usr/libexec/kde4/kcmdatetimehelper from 'read' accesse...
Keywords:
Status: CLOSED DUPLICATE of bug 747306
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: i386
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:630553c2df4...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-10-19 13:10 UTC by Mircea Sava
Modified: 2011-10-19 13:16 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-10-19 13:16:07 UTC
Type: ---


Attachments (Terms of Use)

Description Mircea Sava 2011-10-19 13:10:55 UTC
SELinux is preventing /usr/libexec/kde4/kcmdatetimehelper from 'read' accesses on the file /.config/Trolltech.conf.

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

If you want to allow kcmdatetimehelper to have read 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: afs_cache_t, policykit_reload_t, abrt_helper_exec_t, samba_var_t, ld_so_t, net_conf_t, etc_runtime_t, textrel_shlib_t, config_usr_t, rpm_script_tmp_t, consoletype_exec_t, hwclock_exec_t, gnomeclock_t, ntpd_initrc_exec_t, system_dbusd_var_lib_t, policykit_auth_exec_t, ld_so_cache_t, bin_t, cert_t, gnomeclock_exec_t, usr_t, locale_t, sssd_public_t, etc_t, proc_t, system_cronjob_var_lib_t, policykit_var_lib_t, abrt_var_run_t, krb5_conf_t, shell_exec_t, sysctl_crypto_t, dbusd_etc_t, systemd_systemctl_exec_t, userdomain, abrt_t, ntpdate_exec_t, lib_t, net_conf_t, cert_t. 
Then execute: 
restorecon -v '/.config/Trolltech.conf'


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

If you believe that kcmdatetimehelper should be allowed read 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 kcmdatetimehelp /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:gnomeclock_t:s0-s0:c0.c1023
Target Context                system_u:object_r:default_t:s0
Target Objects                /.config/Trolltech.conf [ file ]
Source                        kcmdatetimehelp
Source Path                   /usr/libexec/kde4/kcmdatetimehelper
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           kdebase-workspace-4.6.5-5.fc15
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.16-39.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.40.6-0.fc15.i686
                              #1 SMP Tue Oct 4 00:51:19 UTC 2011 i686 i686
Alert Count                   2
First Seen                    Wed 19 Oct 2011 03:39:03 PM EEST
Last Seen                     Wed 19 Oct 2011 03:43:10 PM EEST
Local ID                      3f5a665e-801b-4834-924b-9205213b3a79

Raw Audit Messages
type=AVC msg=audit(1319027943.638:152): avc:  denied  { read } for  pid=4935 comm="kcmdatetimehelp" name="Trolltech.conf" dev=dm-1 ino=2752515 scontext=system_u:system_r:gnomeclock_t:s0-s0:c0.c1023 tcontext=system_u:object_r:default_t:s0 tclass=file


type=SYSCALL msg=audit(1319027943.638:152): arch=i386 syscall=open success=no exit=EACCES a0=81250a8 a1=88000 a2=0 a3=0 items=0 ppid=1 pid=4935 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=kcmdatetimehelp exe=/usr/libexec/kde4/kcmdatetimehelper subj=system_u:system_r:gnomeclock_t:s0-s0:c0.c1023 key=(null)

Hash: kcmdatetimehelp,gnomeclock_t,default_t,file,read

audit2allow

#============= gnomeclock_t ==============
allow gnomeclock_t default_t:file read;

audit2allow -R

#============= gnomeclock_t ==============
allow gnomeclock_t default_t:file read;

Comment 1 Miroslav Grepl 2011-10-19 13:16:07 UTC

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


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