Bug 732847

Summary: SELinux is preventing /usr/libexec/colord from using the 'sys_admin' capabilities.
Product: [Fedora] Fedora Reporter: Luya Tshimbalanga <luya>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: dominick.grift, dwalsh, mgrepl, paulsmcin
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:83f91e7027e637c589fe4c999feb184771570d06c400905a2916e65fe0c6b627
Fixed In Version: selinux-policy-3.10.0-21.fc16 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-09-07 03:19:52 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 Luya Tshimbalanga 2011-08-23 21:30:53 UTC
abrt version: 2.0.5
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.0.0-1.fc16.x86_64
reason:         SELinux is preventing /usr/libexec/colord from using the 'sys_admin' capabilities.
time:           Tue Aug 23 10:29:59 2011

description:
:SELinux is preventing /usr/libexec/colord from using the 'sys_admin' capabilities.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that colord should have the sys_admin capability 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 /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                system_u:system_r:colord_t:s0-s0:c0.c1023
:Target Context                system_u:system_r:colord_t:s0-s0:c0.c1023
:Target Objects                Unknown [ capability ]
:Source                        colord
:Source Path                   /usr/libexec/colord
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           colord-0.1.10-1.fc16
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-15.fc16
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.0.0-1.fc16.x86_64 #1
:                              SMP Fri Jul 22 16:09:29 UTC 2011 x86_64 x86_64
:Alert Count                   3
:First Seen                    Tue 23 Aug 2011 10:29:10 AM EDT
:Last Seen                     Tue 23 Aug 2011 10:29:10 AM EDT
:Local ID                      5ae19af1-d6cc-4f73-8c60-6bef8c6da77c
:
:Raw Audit Messages
:type=AVC msg=audit(1314109750.468:56): avc:  denied  { sys_admin } for  pid=1729 comm="colord" capability=21  scontext=system_u:system_r:colord_t:s0-s0:c0.c1023 tcontext=system_u:system_r:colord_t:s0-s0:c0.c1023 tclass=capability
:
:
:type=SYSCALL msg=audit(1314109750.468:56): arch=x86_64 syscall=open success=yes exit=EBUSY a0=7fff051e91d0 a1=882 a2=5 a3=7fff051e79c0 items=0 ppid=1 pid=1729 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=colord exe=/usr/libexec/colord subj=system_u:system_r:colord_t:s0-s0:c0.c1023 key=(null)
:
:Hash: colord,colord_t,colord_t,capability,sys_admin
:
:audit2allow
:
:#============= colord_t ==============
:allow colord_t self:capability sys_admin;
:
:audit2allow -R
:
:#============= colord_t ==============
:allow colord_t self:capability sys_admin;
:

Comment 1 Daniel Walsh 2011-08-24 02:40:25 UTC
I added dontaudit to policy for this access in policy selinux-policy-3.10.0-20

Comment 2 Fedora Update System 2011-08-24 11:39:08 UTC
selinux-policy-3.10.0-21.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/selinux-policy-3.10.0-21.fc16

Comment 3 Fedora Update System 2011-08-24 22:46:05 UTC
Package selinux-policy-3.10.0-21.fc16:
* should fix your issue,
* was pushed to the Fedora 16 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-21.fc16'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/selinux-policy-3.10.0-21.fc16
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2011-09-07 03:19:17 UTC
selinux-policy-3.10.0-21.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.