Bug 902088 - SELinux is preventing /usr/libexec/colord from 'search' accesses on the directory 1354.
Summary: SELinux is preventing /usr/libexec/colord from 'search' accesses on the direc...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 18
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:3c430d35992e7219206e2205a86...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-01-20 20:27 UTC by Dario Castellarin
Modified: 2013-01-25 21:45 UTC (History)
11 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-01-25 21:45:37 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Dario Castellarin 2013-01-20 20:27:48 UTC
Description of problem:
I just added an HP network printer.
SELinux is preventing /usr/libexec/colord from 'search' accesses on the directory 1354.

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

If si crede che colord dovrebbe avere possibilità di accesso search sui 1354 directory in modo predefinito.
Then si dovrebbe riportare il problema come bug.
E' possibile generare un modulo di politica locale per consentire questo accesso.
Do
consentire questo accesso per il momento eseguendo:
# 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
Target Context                system_u:system_r:cupsd_t:s0-s0:c0.c1023
Target Objects                1354 [ dir ]
Source                        colord
Source Path                   /usr/libexec/colord
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           colord-0.1.28-1.fc18.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.11.1-71.fc18.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.7.3-201.fc18.x86_64 #1 SMP Fri
                              Jan 18 18:31:30 UTC 2013 x86_64 x86_64
Alert Count                   1
First Seen                    2013-01-20 21:26:26 CET
Last Seen                     2013-01-20 21:26:26 CET
Local ID                      90aee63d-5156-4c62-a9c5-8baeacc87c15

Raw Audit Messages
type=AVC msg=audit(1358713586.691:384): avc:  denied  { search } for  pid=1349 comm="colord" name="1354" dev="proc" ino=22104 scontext=system_u:system_r:colord_t:s0 tcontext=system_u:system_r:cupsd_t:s0-s0:c0.c1023 tclass=dir


type=SYSCALL msg=audit(1358713586.691:384): arch=x86_64 syscall=open success=no exit=EACCES a0=16a8690 a1=80000 a2=1b6 a3=238 items=0 ppid=1 pid=1349 auid=4294967295 uid=997 gid=996 euid=997 suid=997 fsuid=997 egid=996 sgid=996 fsgid=996 ses=4294967295 tty=(none) comm=colord exe=/usr/libexec/colord subj=system_u:system_r:colord_t:s0 key=(null)

Hash: colord,colord_t,cupsd_t,dir,search

audit2allow

#============= colord_t ==============
allow colord_t cupsd_t:dir search;

audit2allow -R

#============= colord_t ==============
allow colord_t cupsd_t:dir search;


Additional info:
hashmarkername: setroubleshoot
kernel:         3.7.3-201.fc18.x86_64
type:           libreport

Comment 1 Mamoru TASAKA 2013-01-21 01:01:22 UTC
Seems 100% reproducible with
# systemctl restart cups.service

# rpm -q cups colord selinux-policy-targeted
cups-1.5.4-20.fc18.i686
colord-0.1.28-1.fc18.i686
selinux-policy-targeted-3.11.1-71.fc18.noarch


Package: (null)
Architecture: i686
OS Release: Fedora release 18 (Spherical Cow)

Comment 2 Dario Castellarin 2013-01-21 09:25:41 UTC
I got this on system startup

Package: (null)
OS Release: Fedora release 18 (Spherical Cow)

Comment 3 Marcel Wysocki 2013-01-21 10:41:36 UTC
Confirmed, F18 updates-testing enabled

Comment 4 Neil Darlow 2013-01-21 14:55:03 UTC
The AVC denial was reported after KDE login. Nothing specific was done to cause it.

Package: (null)
Architecture: i686
OS Release: Fedora release 18 (Spherical Cow)

Comment 5 Krzysztof Daniel 2013-01-21 19:12:37 UTC
performed update

Package: (null)
OS Release: Fedora release 18 (Spherical Cow)

Comment 6 Daniel Walsh 2013-01-21 20:58:10 UTC
968038ba069db36ca7f0e52601d033893818987b in git fixes this problem.

Comment 7 Miroslav Grepl 2013-01-21 22:21:33 UTC
Added.

Comment 8 Fedora Update System 2013-01-21 23:36:20 UTC
selinux-policy-3.11.1-73.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/selinux-policy-3.11.1-73.fc18

Comment 9 collura 2013-01-22 18:40:39 UTC
logged in

Package: (null)
OS Release: Fedora release 18 (Spherical Cow)

Comment 10 Fedora Update System 2013-01-23 01:58:06 UTC
Package selinux-policy-3.11.1-73.fc18:
* should fix your issue,
* was pushed to the Fedora 18 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.11.1-73.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-1272/selinux-policy-3.11.1-73.fc18
then log in and leave karma (feedback).

Comment 11 Fedora Update System 2013-01-25 21:45:39 UTC
selinux-policy-3.11.1-73.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.


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