Bug 789682

Summary: SELinux is preventing /usr/libexec/kde4/kcmdatetimehelper from 'dac_override' accesses on the None /.config.
Product: [Fedora] Fedora Reporter: A.J. Bonnema <gbonnema>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:a6a1c2ec96824a110810745359f398c738e34407e6b888a11a89a95f97e704e0
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-13 20:35:44 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 A.J. Bonnema 2012-02-12 11:25:35 UTC
libreport version: 2.0.8
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.2.3-2.fc16.x86_64
reason:         SELinux is preventing /usr/libexec/kde4/kcmdatetimehelper from 'dac_override' accesses on the None /.config.
time:           Sun 12 Feb 2012 12:25:02 PM CET

description:
:SELinux is preventing /usr/libexec/kde4/kcmdatetimehelper from 'dac_override' accesses on the None /.config.
:
:*****  Plugin dac_override (91.4 confidence) suggests  ***********************
:
:If you want to help identify if domain needs this access or you have a file with the wrong permissions on your system
:Then turn on full auditing to get path information about the offending file and generate the error again.
:Do
:
:Turn on full auditing
:# auditctl -w /etc/shadow -p w
:Try to recreate AVC. Then execute
:# ausearch -m avc -ts recent
:If you see PATH record check ownership/permissions on file, and fix it, 
:otherwise report as a bugzilla.
:
:*****  Plugin catchall (9.59 confidence) suggests  ***************************
:
:If you believe that kcmdatetimehelper should be allowed dac_override access on the .config <Unknown> 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:system_r:gnomeclock_t:s0-s0:c0.c1023
:Target Objects                /.config [ None ]
:Source                        kcmdatetimehelp
:Source Path                   /usr/libexec/kde4/kcmdatetimehelper
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           kdebase-workspace-4.7.4-7.fc16.x86_64
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-75.fc16.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.2.3-2.fc16.x86_64 #1 SMP
:                              Fri Feb 3 20:08:08 UTC 2012 x86_64 x86_64
:Alert Count                   2
:First Seen                    Sun 12 Feb 2012 12:13:49 PM CET
:Last Seen                     Sun 12 Feb 2012 12:23:12 PM CET
:Local ID                      13f8e545-2287-4fb2-80b4-59232a5db43e
:
:Raw Audit Messages
:type=AVC msg=audit(1329045792.787:1163): avc:  denied  { dac_override } for  pid=29638 comm="kcmdatetimehelp" capability=1  scontext=system_u:system_r:gnomeclock_t:s0-s0:c0.c1023 tcontext=system_u:system_r:gnomeclock_t:s0-s0:c0.c1023 tclass=capabilitynode=(removed) type=SYSCALL msg=audit(1329045792.787:1163): arch=c000003e syscall=83 success=no exit=-13 a0=c87948 a1=1ff a2=ffffffffffffff70 a3=0 items=1 ppid=29637 pid=29638 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)
:
:
:type=CWD msg=audit(1329045792.787:1163): cwd=/
:
:type=PATH msg=audit(1329045792.787:1163): item=0 name=/.config inode=2 dev=08:21 mode=040555 ouid=0 ogid=0 rdev=00:00 obj=system_u:object_r:root_t:s0
:
:Hash: kcmdatetimehelp,gnomeclock_t,gnomeclock_t,None,dac_override
:
:audit2allow
:
:
:audit2allow -R
:
:

Comment 1 Miroslav Grepl 2012-02-13 20:35:44 UTC
Execute:

$ semanage permissive -a gnomeclock_t

to make this working.

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