Bug 802598

Summary: SELinux is preventing /usr/libexec/colord from 'read' accesses on the file libsane-smfp.so.1.0.1.
Product: [Fedora] Fedora Reporter: Luya Tshimbalanga <luya>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED NOTABUG 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:3838c15cb56117fd9346bbcc9927de382646f30a8e5aa712330406d44c66ab91
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-03-13 08:57:20 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 2012-03-13 03:11:08 UTC
libreport version: 2.0.8
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.2.9-2.fc16.x86_64
reason:         SELinux is preventing /usr/libexec/colord from 'read' accesses on the file libsane-smfp.so.1.0.1.
time:           Mon 12 Mar 2012 08:10:50 PM PDT

description:
:SELinux is preventing /usr/libexec/colord from 'read' accesses on the file libsane-smfp.so.1.0.1.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that colord should be allowed read access on the libsane-smfp.so.1.0.1 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 /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                unconfined_u:object_r:user_home_t:s0
:Target Objects                libsane-smfp.so.1.0.1 [ file ]
:Source                        colord
:Source Path                   /usr/libexec/colord
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           colord-0.1.15-2.fc16.x86_64
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-78.fc16.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.2.9-2.fc16.x86_64 #1 SMP
:                              Mon Mar 5 20:55:39 UTC 2012 x86_64 x86_64
:Alert Count                   1
:First Seen                    Mon 12 Mar 2012 08:06:26 PM PDT
:Last Seen                     Mon 12 Mar 2012 08:06:26 PM PDT
:Local ID                      c9162716-dbed-46a9-9866-a89324041a23
:
:Raw Audit Messages
:type=AVC msg=audit(1331607986.672:66): avc:  denied  { read } for  pid=991 comm="colord" name="libsane-smfp.so.1.0.1" dev=dm-1 ino=2122286 scontext=system_u:system_r:colord_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file
:
:
:type=SYSCALL msg=audit(1331607986.672:66): arch=x86_64 syscall=open success=no exit=EACCES a0=7fff60c9fd00 a1=0 a2=1b6 a3=238 items=0 ppid=1 pid=991 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,user_home_t,file,read
:
:audit2allow
:
:#============= colord_t ==============
:allow colord_t user_home_t:file read;
:
:audit2allow -R
:
:#============= colord_t ==============
:allow colord_t user_home_t:file read;
:

Comment 1 Miroslav Grepl 2012-03-13 08:57:20 UTC
You will need to fix the label for libsane-smfp.so.1.0.1

$ restorecon -R -v PATHO/libsane-smfp.so.1.0.1