Bug 785577 - SELinux is preventing /usr/sbin/httpd from 'name_connect' accesses on the None .
Summary: SELinux is preventing /usr/sbin/httpd from 'name_connect' accesses on the None .
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 16
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:a22b6feb4735ead9dc9bf3efa22...
: 786017 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-01-29 17:36 UTC by Tran Chi Thanh
Modified: 2012-01-31 10:22 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-01-30 11:45:30 UTC
Type: ---


Attachments (Terms of Use)

Description Tran Chi Thanh 2012-01-29 17:36:30 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/sbin/httpd from 'name_connect' accesses on the None .
time:           Mon 30 Jan 2012 12:36:09 AM ICT

description:
:SELinux is preventing /usr/sbin/httpd from 'name_connect' accesses on the None .
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that httpd should be allowed name_connect 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 httpd /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                system_u:system_r:httpd_t:s0
:Target Context                system_u:object_r:http_port_t:s0
:Target Objects                 [ None ]
:Source                        httpd
:Source Path                   /usr/sbin/httpd
:Port                          80
:Host                          (removed)
:Source RPM Packages           
:Target RPM Packages           
:Policy RPM                    <Unknown>
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
: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                   1
:First Seen                    Mon 30 Jan 2012 12:35:35 AM ICT
:Last Seen                     Mon 30 Jan 2012 12:35:35 AM ICT
:Local ID                      713725d6-c59d-4694-ab2f-61a311dcc9d5
:
:Raw Audit Messages
:type=AVC msg=audit(1327858535.626:1361): avc:  denied  { name_connect } for  pid=1195 comm="httpd" dest=80 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:http_port_t:s0 tclass=tcp_socketnode=(removed) type=SYSCALL msg=audit(1327858535.626:1361): arch=c000003e syscall=42 success=no exit=-13 a0=1f a1=7faa7c7cfaf8 a2=10 a3=40 items=0 ppid=1163 pid=1195 auid=4294967295 uid=48 gid=48 euid=48 suid=48 fsuid=48 egid=48 sgid=48 fsgid=48 tty=(none) ses=4294967295 comm="httpd" exe="/usr/sbin/httpd" subj=system_u:system_r:httpd_t:s0 key=(null)
:
:
:Hash: httpd,httpd_t,http_port_t,None,name_connect
:
:audit2allow
:
:
:audit2allow -R
:
:

Comment 1 Miroslav Grepl 2012-01-30 11:45:30 UTC
cat /tmp/apache.log |audit2allow


#============= httpd_t ==============
#!!!! This avc can be allowed using one of the these booleans:
#     httpd_can_network_relay, allow_ypbind, httpd_can_network_connect

allow httpd_t http_port_t:tcp_socket name_connect;

You will need to turn on "httpd_can_network_relay" boolean.

Comment 2 Miroslav Grepl 2012-01-31 10:22:20 UTC
*** Bug 786017 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.