Bug 701607

Summary: SELinux is preventing /usr/libexec/kde4/kcmdatetimehelper from 'write' accesses on the file /.config/Trolltech.conf.
Product: [Fedora] Fedora Reporter: Martin Kho <rh-bugzilla>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:58e2f64c485f1022a95f21595f388c2ced34482bdd8daacb3c22f62eca0a2e05
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-03 11:50:48 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 Martin Kho 2011-05-03 10:59:42 UTC
SELinux is preventing /usr/libexec/kde4/kcmdatetimehelper from 'write' accesses on the file /.config/Trolltech.conf.

*****  Plugin catchall (100. confidence) suggests  ***************************

If you believe that kcmdatetimehelper 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 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:etc_runtime_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.2-6.fc15
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.16-21.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.38.4-20.fc15.x86_64 #1 SMP Thu Apr 28 23:32:48
                              UTC 2011 x86_64 x86_64
Alert Count                   2
First Seen                    Tue 03 May 2011 12:04:44 PM CEST
Last Seen                     Tue 03 May 2011 12:48:06 PM CEST
Local ID                      7e7baaea-9cef-4e1e-9536-b16361fa819e

Raw Audit Messages
type=AVC msg=audit(1304419686.254:68): avc:  denied  { write } for  pid=3108 comm="kcmdatetimehelp" name="Trolltech.conf" dev=dm-0 ino=54191 scontext=system_u:system_r:gnomeclock_t:s0-s0:c0.c1023 tcontext=system_u:object_r:etc_runtime_t:s0 tclass=file


type=SYSCALL msg=audit(1304419686.254:68): arch=x86_64 syscall=open success=no exit=EACCES a0=18eaeb8 a1=80042 a2=1b6 a3=0 items=0 ppid=3107 pid=3108 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,etc_runtime_t,file,write

audit2allow

#============= gnomeclock_t ==============
allow gnomeclock_t etc_runtime_t:file write;

audit2allow -R

#============= gnomeclock_t ==============
allow gnomeclock_t etc_runtime_t:file write;

Comment 1 Miroslav Grepl 2011-05-03 11:50:48 UTC

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