Bug 711025 - SELinux is preventing /usr/libexec/kde4/kcmdatetimehelper from 'write' accesses on the directory /.config.
Summary: SELinux is preventing /usr/libexec/kde4/kcmdatetimehelper from 'write' access...
Keywords:
Status: CLOSED DUPLICATE of bug 694385
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:06ae40bccdb...
: 877480 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-06-06 09:26 UTC by Jochan
Modified: 2012-11-16 16:47 UTC (History)
7 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2011-06-06 16:09:26 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Jochan 2011-06-06 09:26:57 UTC
SELinux is preventing /usr/libexec/kde4/kcmdatetimehelper from 'write' accesses on the directory /.config.

*****  Plugin restorecon (99.5 confidence) suggests  *************************

If you want to fix the label. 
/.config default label should be default_t.
Then you can run restorecon.
Do
# /sbin/restorecon -v /.config

*****  Plugin catchall (1.49 confidence) suggests  ***************************

If you believe that kcmdatetimehelper should be allowed write access on the .config directory 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:root_t:s0
Target Objects                /.config [ dir ]
Source                        kcmdatetimehelp
Source Path                   /usr/libexec/kde4/kcmdatetimehelper
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           kdebase-workspace-4.6.3-5.fc15
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.16-26.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.38.6-27.fc15.x86_64 #1 SMP Sun May
                              15 17:23:28 UTC 2011 x86_64 x86_64
Alert Count                   1
First Seen                    Mon 06 Jun 2011 09:53:45 AM CEST
Last Seen                     Mon 06 Jun 2011 09:53:45 AM CEST
Local ID                      2f47bf02-0c44-40da-aa1d-056e1128859a

Raw Audit Messages
type=AVC msg=audit(1307346825.381:100): avc:  denied  { write } for  pid=5844 comm="kcmdatetimehelp" name=".config" dev=dm-1 ino=3145729 scontext=system_u:system_r:gnomeclock_t:s0-s0:c0.c1023 tcontext=system_u:object_r:root_t:s0 tclass=dir


type=SYSCALL msg=audit(1307346825.381:100): arch=x86_64 syscall=open success=no exit=EACCES a0=18a3728 a1=80042 a2=1b6 a3=0 items=0 ppid=5843 pid=5844 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,root_t,dir,write

audit2allow

#============= gnomeclock_t ==============
#!!!! The source type 'gnomeclock_t' can write to a 'dir' of the following types:
# locale_t, etc_t, config_usr_t

allow gnomeclock_t root_t:dir write;

audit2allow -R

#============= gnomeclock_t ==============
#!!!! The source type 'gnomeclock_t' can write to a 'dir' of the following types:
# locale_t, etc_t, config_usr_t

allow gnomeclock_t root_t:dir write;

Comment 1 Miroslav Grepl 2011-06-06 16:09:26 UTC

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

Comment 2 Daniel Walsh 2012-11-16 16:47:12 UTC
*** Bug 877480 has been marked as a duplicate of this bug. ***


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