Description of problem: My squid ceased to work after yesterday I updated to 5.2. Search in audit.log yields: time->Wed Jun 25 07:25:18 2008 type=ANOM_ABEND msg=audit(1214371518.634:1480): auid=0 uid=23 gid=23 ses=227 subj=root:system_r:squid_t:s0 pid=13115 comm="squid" sig=6 and in /var/log/messages I have: Jun 25 07:25:18 triss (squid): Cannot open snmp Port Jun 25 07:25:18 triss squid[13081]: Squid Parent: child process 13115 exited due to signal 6 Jun 25 07:25:18 triss squid[13081]: Exiting due to repeated, frequent failures Jun 25 07:25:34 triss squid[13147]: Squid Parent: child process 13149 started Squid simply does not start. After I set selinux mode to permissive I am able to start squid so I guess this is selinux problem. Thing to note: I have snmp enabled in squid and snmp port is use is 3401 (the default AFAIR). Disabling snmp also helps. Setting squid_connect_any to 1 does not help. Version-Release number of selected component (if applicable): squid-2.6.STABLE6-5.el5_1.3 selinux-policy-targeted-2.4.6-137.el5 How reproducible: always Actual results: squid does not start with snmp enabled and selinux enforcing Expected results: squid starts uder these conditions Additional info: I found this on CentOS, not RHEL, but I believe you might be interested.
You can turn off the DONTAUDIT rules by executing # semodule -b /usr/share/selinux/targeted/enableaudit.pp Do you see any AVC messages, when starting squid? Turn them back on by executing # semodule -b /usr/share/selinux/targeted/base.pp
I just reviewed the difference between Rawhide Squid policy and RHEL5 and it looks like listening on 3401 was added after the fact, So this is indeed a bug. You can create a custom policy module to allow it to bind to this service
Created attachment 310254 [details] Te file to fix squid Extract attachment into mysquid.te # make -f /usr/share/selinux/devel/Makefile # semodule -i mysquid.pp Should fix
Fixed in selinux-policy-2.4.6-140.el5
This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux maintenance release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux Update release for currently deployed products. This request is not yet committed for inclusion in an Update release.
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2009-0163.html