Bug 827323 - SELinux is preventing /usr/libexec/colord-sane from 'name_connect' accesses on the tcp_socket .
SELinux is preventing /usr/libexec/colord-sane from 'name_connect' accesses o...
Product: Fedora
Classification: Fedora
Component: colord (Show other bugs)
x86_64 Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Richard Hughes
Fedora Extras Quality Assurance
: 831282 918518 (view as bug list)
Depends On:
  Show dependency treegraph
Reported: 2012-06-01 02:33 EDT by Giuseppe Fierro
Modified: 2013-04-24 06:40 EDT (History)
8 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2013-04-24 06:30:35 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Giuseppe Fierro 2012-06-01 02:33:23 EDT
libreport version: 2.0.10
executable:     /usr/bin/python2.7
hashmarkername: setroubleshoot
kernel:         3.3.7-1.fc17.x86_64
time:           ven 01 giu 2012 08:32:55 CEST

:SELinux is preventing /usr/libexec/colord-sane from 'name_connect' accesses on the tcp_socket .
:*****  Plugin catchall (100. confidence) suggests  ***************************
:If you believe that colord-sane should be allowed name_connect access on the  tcp_socket by default.
:Then you should report this as a bug.
:You can generate a local policy module to allow this access.
: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:ephemeral_port_t:s0
:Target Objects                 [ tcp_socket ]
:Source                        colord-sane
:Source Path                   /usr/libexec/colord-sane
:Port                          44580
:Host                          (removed)
:Source RPM Packages           colord-0.1.18-2.fc17.x86_64
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-125.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.3.7-1.fc17.x86_64 #1 SMP Mon May 21
:                              22:32:19 UTC 2012 x86_64 x86_64
:Alert Count                   30
:First Seen                    gio 31 mag 2012 20:33:21 CEST
:Last Seen                     gio 31 mag 2012 22:40:17 CEST
:Local ID                      b55184b4-874c-4897-b8fe-1eb89bfc2435
:Raw Audit Messages
:type=AVC msg=audit(1338496817.324:110): avc:  denied  { name_connect } for  pid=1581 comm="colord-sane" dest=44580 scontext=system_u:system_r:colord_t:s0 tcontext=system_u:object_r:ephemeral_port_t:s0 tclass=tcp_socket
:type=SYSCALL msg=audit(1338496817.324:110): arch=x86_64 syscall=connect success=no exit=EACCES a0=14 a1=7fff9c08d6f0 a2=10 a3=7fff9c08d6e0 items=0 ppid=1 pid=1581 auid=4294967295 uid=993 gid=990 euid=993 suid=993 fsuid=993 egid=990 sgid=990 fsgid=990 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,ephemeral_port_t,tcp_socket,name_connect
:audit2allowunable to open /sys/fs/selinux/policy:  Permission denied
:audit2allow -Runable to open /sys/fs/selinux/policy:  Permission denied
Comment 1 Miroslav Grepl 2012-06-04 11:06:57 EDT
Why does colord need to connect to this port?

I would say this could be a problem with colord-sane which we had?
Comment 2 Murat 2012-12-16 06:47:14 EST
after starting my laptop selinux informed me

Package: (null)
OS Release: Fedora release 17 (Beefy Miracle)
Comment 3 Richard Hughes 2013-04-24 06:30:35 EDT
As of F18, colord doesn't ship the sane stuff by default now.
Comment 4 Richard Hughes 2013-04-24 06:30:58 EDT
*** Bug 831282 has been marked as a duplicate of this bug. ***
Comment 5 Richard Hughes 2013-04-24 06:40:30 EDT
*** Bug 918518 has been marked as a duplicate of this bug. ***

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