Hide Forgot
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 : :
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.
*** Bug 786017 has been marked as a duplicate of this bug. ***