Bug 756337

Summary: SELinux is preventing /usr/lib/iscan/network from 'node_bind' accesses on the tcp_socket port None.
Product: [Fedora] Fedora Reporter: Slawomir Czarko <slawomir.czarko>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 15CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:3c9ed053cd6e849e0464cdb6d004320cb6b9e46f2a48120f76fab200ac377d58
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-11-23 17:07:49 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Slawomir Czarko 2011-11-23 10:34:25 UTC
SELinux is preventing /usr/lib/iscan/network from 'node_bind' accesses on the tcp_socket port None.

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

If you believe that network should be allowed node_bind access on the port None tcp_socket 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 network /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:node_t:s0
Target Objects                port None [ tcp_socket ]
Source                        network
Source Path                   /usr/lib/iscan/network
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           iscan-network-nt-1.1.0-2
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.16-44.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.41.1-1.fc15.i686.PAE #1
                              SMP Fri Nov 11 21:43:42 UTC 2011 i686 i686
Alert Count                   2
First Seen                    Wed 23 Nov 2011 10:44:23 AM CET
Last Seen                     Wed 23 Nov 2011 10:47:58 AM CET
Local ID                      989eba1d-6346-4ed6-a04d-048f790a4919

Raw Audit Messages
type=AVC msg=audit(1322041678.109:22): avc:  denied  { node_bind } for  pid=1339 comm="network" saddr=127.0.0.1 scontext=system_u:system_r:colord_t:s0-s0:c0.c1023 tcontext=system_u:object_r:node_t:s0 tclass=tcp_socket


type=SYSCALL msg=audit(1322041678.109:22): arch=i386 syscall=socketcall success=yes exit=0 a0=2 a1=bfc09a00 a2=9eb8008 a3=bfc09a1c items=0 ppid=1326 pid=1339 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=network exe=/usr/lib/iscan/network subj=system_u:system_r:colord_t:s0-s0:c0.c1023 key=(null)

Hash: network,colord_t,node_t,tcp_socket,node_bind

audit2allow

#============= colord_t ==============
allow colord_t node_t:tcp_socket node_bind;

audit2allow -R

#============= colord_t ==============
allow colord_t node_t:tcp_socket node_bind;

Comment 1 Daniel Walsh 2011-11-23 17:07:49 UTC

*** This bug has been marked as a duplicate of bug 756334 ***