Bug 1099543
Summary: | SELinux prevents squid runing in SMP mode | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Fernando Lozano <fernando> |
Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | 20 | CC: | dominick.grift, dwalsh, fernando, lvrabec, mgrepl |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | selinux-policy-3.12.1-171.fc20 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2014-06-26 01:53:18 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Fernando Lozano
2014-05-20 14:55:44 UTC
allow squid_t var_run_t:sock_file { create write unlink }; allow squid_t var_run_t:sock_file create; what is a path to this sockets? name="kid-1.ipc" name="coordinator.ipc" Those socket files (*.ipc) are created at /var/run/squid Finally got to test squid in SMP mode using Fedora (f19) and squid-3.3.12-1.fc19.x86_64 from Fedora repos. This squid release does not implements the "rock" cache store, so I had to use a simpler config than with my tests using CentOS 6.5 and squid-3.4.3. It's enough to add this directive to /etc/squid/squid.conf workers 2 Squid will try to use /var/run/squid for the ipc files, but this directory has to be created with group owner squid and write permission for group: # ls -laZ /var/run/squid* -rw-r--r--. root squid system_u:object_r:squid_var_run_t:s0 /var/run/squid.pid /var/run/squid: drwxrwxr-x. root squid unconfined_u:object_r:var_run_t:s0 . drwxr-xr-x. root root system_u:object_r:var_run_t:s0 .. This path (/var/run/squid) has to be configurable somewhere, I'll look at this. Probably it should be added to the squid RPM package. In the meantime, starting squid under f19 with selinux enforcing, I got the same AVCs as I did using centos and audit2allow generated the same policy (first part, "for ipc..."). 23450f5c3d964a4c688d818c03eff7edf162641b fixes this in git. selinux-policy-3.12.1-167.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-167.fc20 Package selinux-policy-3.12.1-167.fc20: * should fix your issue, * was pushed to the Fedora 20 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing selinux-policy-3.12.1-167.fc20' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2014-7240/selinux-policy-3.12.1-167.fc20 then log in and leave karma (feedback). selinux-policy-3.12.1-171.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-171.fc20 Package selinux-policy-3.12.1-171.fc20: * should fix your issue, * was pushed to the Fedora 20 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing selinux-policy-3.12.1-171.fc20' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2014-7499/selinux-policy-3.12.1-171.fc20 then log in and leave karma (feedback). selinux-policy-3.12.1-171.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report. |