Bug 951948
Summary: | SELinux is preventing /usr/sbin/httpd from 'unlink' accesses on the file sessionidc075d0b4ce9f36444b2ba81e2c3d695c_out_2aUHY8. | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Niki Guldbrand <niki.guldbrand> |
Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 18 | CC: | dominick.grift, dwalsh, mgrepl |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Unspecified | ||
Whiteboard: | abrt_hash:a6c526fd19e2674e78c2e77b148adb2bef88d9f1c76880ed6b42cb87f73d4281 | ||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2013-04-20 01:02:48 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Niki Guldbrand
2013-04-14 16:27:42 UTC
*** Bug 951946 has been marked as a duplicate of this bug. *** *** Bug 951945 has been marked as a duplicate of this bug. *** *** Bug 951942 has been marked as a duplicate of this bug. *** *** Bug 951940 has been marked as a duplicate of this bug. *** *** Bug 951939 has been marked as a duplicate of this bug. *** *** Bug 951930 has been marked as a duplicate of this bug. *** *** Bug 951931 has been marked as a duplicate of this bug. *** We had apache_content_template(cobbler) in F17 but there were issues with this policy. I am thinking just add httpd_run_cobbler and allow manage these cobbler lib files. Niki, did you try to add a local policy to make this working? I have added this atm, and this part of cobbler seems to be working here now. The commented out lines is because I at first forgot to enable the httpd_can_network_connect_cobbler boolean. =============================== module net.guldbrand.ipa_cobbler-web_httpd 1.0; require { type httpd_t; # type cobbler_port_t; type cobbler_var_lib_t; # class tcp_socket name_connect; class dir { write read add_name remove_name }; class file { rename write create unlink }; } #============= httpd_t ============== #allow httpd_t cobbler_port_t:tcp_socket name_connect; allow httpd_t cobbler_var_lib_t:dir { write read add_name remove_name }; allow httpd_t cobbler_var_lib_t:file { rename write create unlink }; =============================== There may be errors in this, as my knowledge of SELinux is quite limited to be honest. But all httpd has to do is server static files from /var/lib/cobbler/, and that as far as I can see is something httpd always has to do for cobbler to work (That is if I have understood cobbler correctly). Just a thought, why not call it httpd_serve_cobbler_files (the boolean), it seems more descriptive to me :-) cobblerd also needs a cache folder in /var/cache/cobblerd, and it tries to create it if it's missing Don't know if this line is correct, and I haven't figured out how to add it yet, if I should just dump the line at the end of /etc/selinux/targeted/modules/active/file_contexts, or how it all fits together /var/cache/cobbler(/.*)? system_u:object_r:cobbler_var_lib_t:s0 Would that line allow cobblerd to recreate the dir and all content in it that it needs ? bf7a1621089a1044e5835f1ae15a617db13fa955 fixes this in git. selinux-policy-3.11.1-91.fc18 has been submitted as an update for Fedora 18. https://admin.fedoraproject.org/updates/selinux-policy-3.11.1-91.fc18 Package selinux-policy-3.11.1-91.fc18: * should fix your issue, * was pushed to the Fedora 18 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.11.1-91.fc18' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2013-6018/selinux-policy-3.11.1-91.fc18 then log in and leave karma (feedback). selinux-policy-3.11.1-91.fc18 has been pushed to the Fedora 18 stable repository. If problems still persist, please make note of it in this bug report. |