Bug 722755 - SELinux is preventing /usr/libexec/colord from getattr access on the file /usr/local/Brother/sane/models3/ext4.ini.
Summary: SELinux is preventing /usr/libexec/colord from getattr access on the file /us...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 15
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-07-17 11:57 UTC by Boricua
Modified: 2011-11-15 14:12 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-11-15 14:12:53 UTC
Type: ---


Attachments (Terms of Use)

Description Boricua 2011-07-17 11:57:25 UTC
Description of problem: When trying to open a .pdf in Firefox 5 with the mozppluger plugin enabled, Selinux appears to prevent it and sends the message I copied into the Summary space. I'm not sure if the real culprit is colord or Selinux, but the latter states this situation as a bug. Meanwhile, I applied a Selinux troubleshooter's suggested temporal workaround that seems to work.

Version-Release number of selected component (if applicable):


How reproducible: Each time I try to open a pdf via Firefox.

Steps to Reproduce:
1.Click a .pdf link within Firefox.
2.A second tab appears in black, instead of showing the .pdf.
3.Selinux alert shows up.
  
Actual results: No .pdf shown.

Expected results: .pdf displayed in Firefox's tab.

Additional info: I'm including Selinux full report:

SELinux is preventing /usr/libexec/colord from getattr access on the file /usr/local/Brother/sane/models3/ext4.ini.

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

If you believe that colord should be allowed getattr access on the ext4.ini 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                system_u:object_r:bin_t:s0
Target Objects                /usr/local/Brother/sane/models3/ext4.ini [ file ]
Source                        colord
Source Path                   /usr/libexec/colord
Port                          <Unknown>
Host                          Hogar
Source RPM Packages           colord-0.1.7-1.fc15
Target RPM Packages           brscan3-0.2.11-4
Policy RPM                    selinux-policy-3.9.16-32.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     Hogar
Platform                      Linux Hogar 2.6.38.8-35.fc15.x86_64 #1 SMP Wed Jul
                              6 13:58:54 UTC 2011 x86_64 x86_64
Alert Count                   66
First Seen                    Sat 25 Jun 2011 03:58:02 PM AST
Last Seen                     Sun 17 Jul 2011 06:59:51 AM AST
Local ID                      662dcce3-fae2-417a-802d-750aa83fde6a

Raw Audit Messages
type=AVC msg=audit(1310900391.693:22): avc:  denied  { getattr } for  pid=1104 comm="colord" path="/usr/local/Brother/sane/models3/ext4.ini" dev=dm-2 ino=532365 scontext=system_u:system_r:colord_t:s0-s0:c0.c1023 tcontext=system_u:object_r:bin_t:s0 tclass=file


type=SYSCALL msg=audit(1310900391.693:22): arch=x86_64 syscall=fstat success=yes exit=0 a0=12 a1=7fff9db8a8e0 a2=7fff9db8a8e0 a3=7fff9db8a7e0 items=0 ppid=1 pid=1104 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,bin_t,file,getattr

audit2allow

#============= colord_t ==============
#!!!! This avc is allowed in the current policy

allow colord_t bin_t:file getattr;

audit2allow -R

#============= colord_t ==============
#!!!! This avc is allowed in the current policy

allow colord_t bin_t:file getattr;

Comment 1 Richard Hughes 2011-11-15 12:10:55 UTC
Reassigning to selinux-policy, although the brother drivers probably should install their stuff in the right place. I'll leave it to Dan to decide.

Comment 2 Daniel Walsh 2011-11-15 14:12:53 UTC
Already fixed.


Note You need to log in before you can comment on or make changes to this bug.