Bug 1032995
Summary: | Wrong SELinux context | ||
---|---|---|---|
Product: | [Fedora] Fedora EPEL | Reporter: | larchunix |
Component: | glpi | Assignee: | Remi Collet <fedora> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | low | Docs Contact: | |
Priority: | unspecified | ||
Version: | el6 | CC: | fedora |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | glpi-0.83.9.1-5.el6 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2013-12-10 20:05:07 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
larchunix
2013-11-21 11:34:01 UTC
Damn... good catch. Thanks for the report. glpi-0.83.9.1-5.el6 has been submitted as an update for Fedora EPEL 6. https://admin.fedoraproject.org/updates/glpi-0.83.9.1-5.el6 The fix should be merged on Fedora branches too as the issue is also present at least in Fedora 19 (Maybe you already planned to do it). For fedora, I'm waiting for feedback on bug #1032025 as having context defined in main policy will avoid such error in the future (don't remember when the context was renamed and how I can have miss it) I mean Bug #1033025 There is already a context present in the main policy for GLPI : /var/lib/glpi/files(/.*)? all files system_u:object_r:cron_var_lib_t:s0 This pattern is more specific than the pattern /var/lib/glpi(/.*)?. Currently, as we use the semanage command to add the rule on /var/lib/glpi(/.*)? this rule has priority. IIRC, if we do not use semanage command, the more specific rule has priority, i.e : the type cron_var_lib_t will be applied on files under the /var/lib/glpi/files directory. If my reasoning is correct, it means that only cron will have access to the content of the /var/lib/glpi/files directory and httpd will not have access to this directory anymore. According to the content of this directory, it seems that http should have access to this directory, so I think the existing rule is problematic here. I don't know where the policy on /var/lib/glpi/file comes from... I think this can be drop. I run some tests on RHEL-6 ll -aZ /var/lib/glpi/files/_cron/ drwxr-x---. apache root system_u:object_r:httpd_sys_rw_content_t:s0 . drwxr-x---. apache root system_u:object_r:httpd_sys_rw_content_t:s0 .. -rw-r--r--. apache apache unconfined_u:object_r:httpd_sys_rw_content_t:s0 test-20131122-092017 -rw-r--r--. apache apache system_u:object_r:httpd_sys_rw_content_t:s0 test-20131122-092201 The test-20131122-092017 file was created from an action triggered from the web UI. The test-20131122-092201 file was created from a cron action. Package glpi-0.83.9.1-5.el6: * should fix your issue, * was pushed to the Fedora EPEL 6 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=epel-testing glpi-0.83.9.1-5.el6' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-EPEL-2013-12163/glpi-0.83.9.1-5.el6 then log in and leave karma (feedback). glpi-0.83.9.1-5.el6 has been pushed to the Fedora EPEL 6 stable repository. If problems still persist, please make note of it in this bug report. |