Bug 718733

Summary: SELinux is preventing /usr/libexec/kde4/kcmdatetimehelper from 'read' accesses on the file cpuinfo.
Product: [Fedora] Fedora Reporter: Walt <waltsaw>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 14CC: dominick.grift, dwalsh, mgrepl, waltsaw
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:f6ee1c8d5ff5b76b70e270af7e12e085c0ebcecb88d69f57fcd243d4fccacc14
Fixed In Version: selinux-policy-3.9.7-44.fc14 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-08-12 11:01:47 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Walt 2011-07-04 13:02:16 UTC
SELinux is preventing /usr/libexec/kde4/kcmdatetimehelper from 'read' accesses on the file cpuinfo.

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

If you believe that kcmdatetimehelper should be allowed read access on the cpuinfo 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:proc_t:s0
Target Objects                cpuinfo [ file ]
Source                        kcmdatetimehelp
Source Path                   /usr/libexec/kde4/kcmdatetimehelper
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                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.35.13-91.fc14.i686 #1
                              SMP Tue May 3 13:36:36 UTC 2011 i686 i686
Alert Count                   3
First Seen                    Fri 20 May 2011 12:45:03 PM EDT
Last Seen                     Fri 20 May 2011 12:50:34 PM EDT
Local ID                      88d57145-2a29-49b7-9020-0bd4aed44787

Raw Audit Messages
type=AVC msg=audit(1305910234.745:34155): avc:  denied  { read } for  pid=23877 comm="kcmdatetimehelp" name="cpuinfo" dev=proc ino=4026532013 scontext=system_u:system_r:gnomeclock_t:s0-s0:c0.c1023 tcontext=system_u:object_r:proc_t:s0 tclass=file


type=SYSCALL msg=audit(1305910234.745:34155): arch=i386 syscall=open success=no exit=EACCES a0=473e7a a1=80000 a2=bfd876a8 a3=54 items=0 ppid=1 pid=23877 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,proc_t,file,read

audit2allow

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

audit2allow -R

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

Comment 1 Miroslav Grepl 2011-07-11 08:24:02 UTC
Fixed in selinux-policy-3.9.7-44.fc14

Comment 2 Fedora Update System 2011-08-04 13:58:35 UTC
selinux-policy-3.9.7-44.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/selinux-policy-3.9.7-44.fc14

Comment 3 Fedora Update System 2011-08-05 03:53:44 UTC
Package selinux-policy-3.9.7-44.fc14:
* should fix your issue,
* was pushed to the Fedora 14 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.9.7-44.fc14'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/selinux-policy-3.9.7-44.fc14
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2011-08-12 11:00:43 UTC
selinux-policy-3.9.7-44.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 5 Fedora Update System 2011-08-12 18:25:09 UTC
selinux-policy-3.9.7-44.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.