Bug 890254

Summary: SELinux is preventing /usr/libexec/colord-sane from 'getattr' accesses on the file /proc/sys/kernel/osrelease.
Product: [Fedora] Fedora Reporter: kksheth <kkshethin>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Unspecified   
Whiteboard: abrt_hash:5dff90f29a558dc9a3e99c9e78159ace751fbb23d380dd284b5b45691fe16813
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-01-07 03:58:37 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:
Attachments:
Description Flags
File: type
none
File: hashmarkername none

Description kksheth 2012-12-26 05:04:53 UTC
Additional info:
libreport version: 2.0.18
kernel:         3.6.10-2.fc17.i686

description:
:SELinux is preventing /usr/libexec/colord-sane from 'getattr' accesses on the file /proc/sys/kernel/osrelease.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that colord-sane should be allowed getattr access on the osrelease 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 colord-sane /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                system_u:system_r:colord_t:s0
:Target Context                system_u:object_r:sysctl_kernel_t:s0
:Target Objects                /proc/sys/kernel/osrelease [ file ]
:Source                        colord-sane
:Source Path                   /usr/libexec/colord-sane
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           colord-0.1.23-1.fc17.i686
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-161.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.6.10-2.fc17.i686 #1 SMP Tue Dec
:                              11 18:33:15 UTC 2012 i686 i686
:Alert Count                   16
:First Seen                    2012-12-26 10:29:44 IST
:Last Seen                     2012-12-26 10:29:50 IST
:Local ID                      59a077bc-a017-4a8b-bd4e-6af4387773f2
:
:Raw Audit Messages
:type=AVC msg=audit(1356497990.4:178): avc:  denied  { getattr } for  pid=863 comm="colord-sane" path="/proc/sys/kernel/osrelease" dev="proc" ino=16797 scontext=system_u:system_r:colord_t:s0 tcontext=system_u:object_r:sysctl_kernel_t:s0 tclass=file
:
:
:type=SYSCALL msg=audit(1356497990.4:178): arch=i386 syscall=fstat64 success=no exit=EACCES a0=c a1=bffb88a0 a2=46579ff4 a3=8b3fe68 items=0 ppid=1 pid=863 auid=4294967295 uid=997 gid=994 euid=997 suid=997 fsuid=997 egid=994 sgid=994 fsgid=994 tty=(none) ses=4294967295 comm=colord-sane exe=/usr/libexec/colord-sane subj=system_u:system_r:colord_t:s0 key=(null)
:
:Hash: colord-sane,colord_t,sysctl_kernel_t,file,getattr
:
:audit2allow
:
:#============= colord_t ==============
:allow colord_t sysctl_kernel_t:file getattr;
:
:audit2allow -R
:
:#============= colord_t ==============
:allow colord_t sysctl_kernel_t:file getattr;
:

Comment 1 kksheth 2012-12-26 05:05:03 UTC
Created attachment 669085 [details]
File: type

Comment 2 kksheth 2012-12-26 05:05:14 UTC
Created attachment 669086 [details]
File: hashmarkername

Comment 4 Miroslav Grepl 2013-01-02 10:00:15 UTC
Fixed in selinux-policy-3.10.0-166.fc17

commit 7aefced72d8ee4cb58650cc1957db9a78ed965f0
Author: Miroslav Grepl <mgrepl>
Date:   Wed Jan 2 10:58:22 2013 +0100

    Allow colord-sane to read proc/sys/kernel/osrelease

Comment 5 Fedora Update System 2013-01-03 13:06:35 UTC
selinux-policy-3.10.0-166.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/FEDORA-2012-20544/selinux-policy-3.10.0-166.fc17

Comment 6 Fedora Update System 2013-01-05 06:38:47 UTC
Package selinux-policy-3.10.0-166.fc17:
* should fix your issue,
* was pushed to the Fedora 17 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.10.0-166.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-20544/selinux-policy-3.10.0-166.fc17
then log in and leave karma (feedback).

Comment 7 Fedora Update System 2013-01-07 03:58:38 UTC
selinux-policy-3.10.0-166.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.