Bug 887327
Summary: | SELinux is preventing /usr/bin/perl from 'search' accesses on the directory /etc/munin. | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Till Maas <opensource> |
Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 17 | CC: | dominick.grift, dwalsh, mgrepl, opensource |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Unspecified | ||
Whiteboard: | abrt_hash:eab27b60bc09635eaa3e870761b49978c73a2374fa299dd4978e089b675517f4 | ||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2013-01-07 03:57:36 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
Till Maas
2012-12-14 17:07:27 UTC
Where is the CGI script located? There are the following scripts: /var/www/cgi-bin/munin-cgi-graph /var/www/cgi-bin/munin-cgi-html Could you try to execute # chcon -t httpd_munin_script_exec_t /var/www/cgi-bin/munin-cgi-graph /var/www/cgi-bin/munin-cgi-html (In reply to comment #3) > Could you try to execute > > # chcon -t httpd_munin_script_exec_t /var/www/cgi-bin/munin-cgi-graph > /var/www/cgi-bin/munin-cgi-html after this I get these AVCs: type=AVC msg=audit(1355788896.191:17943): avc: denied { search } for pid=7499 comm="munin-cgi-html" name="munin" dev="dm-1" ino=799418 scontext=system_u:system_r:httpd_munin_script_t:s0 tcontext=system_u:object_r:munin_etc_t:s0 tclass=dir type=SYSCALL msg=audit(1355788896.191:17943): arch=x86_64 syscall=stat success=no exit=EACCES a0=111cb90 a1=d5d138 a2=d5d138 a3=20 items=0 ppid=7345 pid=7499 auid=4294967295 uid=48 gid=48 euid=48 suid=48 fsuid=48 egid=48 sgid=48 fsgid=48 tty=(none) ses=4294967295 comm=munin-cgi-html exe=/usr/bin/perl subj=system_u:system_r:httpd_munin_script_t:s0 key=(null) type=AVC msg=audit(1355788896.191:17944): avc: denied { search } for pid=7499 comm="munin-cgi-html" name="lib" dev="dm-1" ino=15 scontext=system_u:system_r:httpd_munin_script_t:s0 tcontext=system_u:object_r:var_lib_t:s0 tclass=dir type=SYSCALL msg=audit(1355788896.191:17944): arch=x86_64 syscall=stat success=no exit=EACCES a0=111cb90 a1=d5d138 a2=d5d138 a3=0 items=0 ppid=7345 pid=7499 auid=4294967295 uid=48 gid=48 euid=48 suid=48 fsuid=48 egid=48 sgid=48 fsgid=48 tty=(none) ses=4294967295 comm=munin-cgi-html exe=/usr/bin/perl subj=system_u:system_r:httpd_munin_script_t:s0 key=(null) I added fixes. selinux-policy-3.10.0-166.fc17 has been submitted as an update for Fedora 17. https://admin.fedoraproject.org/updates/FEDORA-2012-20544/selinux-policy-3.10.0-166.fc17 Package selinux-policy-3.10.0-166.fc17: * should fix your issue, * was pushed to the Fedora 17 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.10.0-166.fc17' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2012-20544/selinux-policy-3.10.0-166.fc17 then log in and leave karma (feedback). selinux-policy-3.10.0-166.fc17 has been pushed to the Fedora 17 stable repository. If problems still persist, please make note of it in this bug report. |