Bug 787786

Summary: SELinux is preventing /usr/bin/tor from 'name_bind' accesses on the None .
Product: [Fedora] Fedora Reporter: Ron Gonzalez <Lcstyle>
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:dafcc9602ddc62e88c4045045dab8db17ac722345cc084e2a05dc81b0253e624
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-06 18:46:42 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 Ron Gonzalez 2012-02-06 18:04:25 UTC
libreport version: 2.0.8
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.2.2-1.fc16.x86_64
reason:         SELinux is preventing /usr/bin/tor from 'name_bind' accesses on the None .
time:           Mon 06 Feb 2012 01:03:55 PM EST

description:
:SELinux is preventing /usr/bin/tor from 'name_bind' accesses on the None .
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that tor should be allowed name_bind access on the  <Unknown> 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 tor /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                system_u:system_r:tor_t:s0
:Target Context                system_u:object_r:hplip_port_t:s0
:Target Objects                 [ None ]
:Source                        tor
:Source Path                   /usr/bin/tor
:Port                          9100
:Host                          (removed)
:Source RPM Packages           tor-core-0.2.2.35-1601.fc16.x86_64
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-75.fc16.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Permissive
:Host Name                     (removed)
:Platform                      Linux (removed) 3.2.2-1.fc16.x86_64 #1 SMP Thu
:                              Jan 26 03:21:58 UTC 2012 x86_64 x86_64
:Alert Count                   7
:First Seen                    Mon 06 Feb 2012 01:40:56 AM EST
:Last Seen                     Mon 06 Feb 2012 12:52:03 PM EST
:Local ID                      03bbf7e6-c31a-4ed7-b1af-d463b217f9d5
:
:Raw Audit Messages
:type=AVC msg=audit(1328550723.102:324): avc:  denied  { name_bind } for  pid=18782 comm="tor" src=9100 scontext=system_u:system_r:tor_t:s0 tcontext=system_u:object_r:hplip_port_t:s0 tclass=tcp_socketnode=(removed) type=SYSCALL msg=audit(1328550723.102:324): arch=c000003e syscall=49 success=yes exit=0 a0=7 a1=24976c0 a2=10 a3=7fff0267df0c items=0 ppid=1 pid=18782 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="tor" exe="/usr/bin/tor" subj=system_u:system_r:tor_t:s0 key=(null)
:
:
:Hash: tor,tor_t,hplip_port_t,None,name_bind
:
:audit2allow
:
:
:audit2allow -R
:
:

Comment 1 Daniel Walsh 2012-02-06 18:46:42 UTC
setsebool -P tor_bind_all_unreserved_ports 1

Comment 2 Daniel Walsh 2012-02-06 18:47:39 UTC
Could you please attach the output of 

ausearch -m avc