Bug 1286052
Summary: | SELinux prevents munin-cgi-graph from creating its log file | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Milos Malik <mmalik> |
Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
Status: | CLOSED ERRATA | QA Contact: | Milos Malik <mmalik> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 6.7 | CC: | dwalsh, lvrabec, mgrepl, mmalik, plautrba, pvrabec, ssekidde |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | selinux-policy-3.7.19-286.el6 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-05-10 20:02:54 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
Milos Malik
2015-11-27 10:20:00 UTC
Actual results (permissive mode): ---- type=PATH msg=audit(11/27/2015 05:26:12.962:432) : item=1 name=/var/log/munin/munin-cgi-graph.log inode=529411 dev=fc:01 mode=file,644 ouid=apache ogid=apache rdev=00:00 obj=unconfined_u:object_r:munin_log_t:s0 nametype=CREATE type=PATH msg=audit(11/27/2015 05:26:12.962:432) : item=0 name=/var/log/munin/ inode=529283 dev=fc:01 mode=dir,775 ouid=apache ogid=munin rdev=00:00 obj=system_u:object_r:munin_log_t:s0 nametype=PARENT type=CWD msg=audit(11/27/2015 05:26:12.962:432) : cwd=/var/www/cgi-bin type=SYSCALL msg=audit(11/27/2015 05:26:12.962:432) : arch=x86_64 syscall=open success=yes exit=3 a0=0x2c6ded0 a1=O_WRONLY|O_CREAT|O_APPEND a2=0666 a3=0x3764d1dd50 items=2 ppid=1676 pid=3450 auid=root uid=apache gid=apache euid=apache suid=apache fsuid=apache egid=apache sgid=apache fsgid=apache tty=(none) ses=4 comm=munin-cgi-graph exe=/usr/bin/perl subj=unconfined_u:system_r:httpd_munin_script_t:s0 key=(null) type=AVC msg=audit(11/27/2015 05:26:12.962:432) : avc: denied { create } for pid=3450 comm=munin-cgi-graph name=munin-cgi-graph.log scontext=unconfined_u:system_r:httpd_munin_script_t:s0 tcontext=unconfined_u:object_r:munin_log_t:s0 tclass=file type=AVC msg=audit(11/27/2015 05:26:12.962:432) : avc: denied { add_name } for pid=3450 comm=munin-cgi-graph name=munin-cgi-graph.log scontext=unconfined_u:system_r:httpd_munin_script_t:s0 tcontext=system_u:object_r:munin_log_t:s0 tclass=dir type=AVC msg=audit(11/27/2015 05:26:12.962:432) : avc: denied { write } for pid=3450 comm=munin-cgi-graph name=munin dev=vda1 ino=529283 scontext=unconfined_u:system_r:httpd_munin_script_t:s0 tcontext=system_u:object_r:munin_log_t:s0 tclass=dir ---- type=SYSCALL msg=audit(11/27/2015 05:26:12.792:431) : arch=x86_64 syscall=ioctl success=no exit=-22(Invalid argument) a0=0x0 a1=0x5401 a2=0x7fff3e6c6880 a3=0x48 items=0 ppid=1676 pid=3450 auid=root uid=apache gid=apache euid=apache suid=apache fsuid=apache egid=apache sgid=apache fsgid=apache tty=(none) ses=4 comm=munin-cgi-graph exe=/usr/bin/perl subj=unconfined_u:system_r:httpd_munin_script_t:s0 key=(null) type=AVC msg=audit(11/27/2015 05:26:12.792:431) : avc: denied { ioctl } for pid=3450 comm=munin-cgi-graph path=socket:[62467] dev=sockfs ino=62467 scontext=unconfined_u:system_r:httpd_munin_script_t:s0 tcontext=unconfined_u:system_r:httpd_t:s0 tclass=unix_stream_socket ---- type=SYSCALL msg=audit(11/27/2015 05:26:12.964:433) : arch=x86_64 syscall=getpeername success=no exit=-107(Transport endpoint is not connected) a0=0x0 a1=0x7fff3e6c6ba0 a2=0x7fff3e6c6b9c a3=0x7fff3e6c6910 items=0 ppid=1676 pid=3450 auid=root uid=apache gid=apache euid=apache suid=apache fsuid=apache egid=apache sgid=apache fsgid=apache tty=(none) ses=4 comm=munin-cgi-graph exe=/usr/bin/perl subj=unconfined_u:system_r:httpd_munin_script_t:s0 key=(null) type=AVC msg=audit(11/27/2015 05:26:12.964:433) : avc: denied { getattr } for pid=3450 comm=munin-cgi-graph path=/var/run/mod_fcgid/1676.2 scontext=unconfined_u:system_r:httpd_munin_script_t:s0 tcontext=unconfined_u:system_r:httpd_t:s0 tclass=unix_stream_socket ---- type=SOCKADDR msg=audit(11/27/2015 05:26:12.964:434) : saddr=local 0 type=SYSCALL msg=audit(11/27/2015 05:26:12.964:434) : arch=x86_64 syscall=accept success=yes exit=4 a0=0x0 a1=0x7fff3e6c6b70 a2=0x7fff3e6c6b6c a3=0x7fff3e6c6820 items=0 ppid=1676 pid=3450 auid=root uid=apache gid=apache euid=apache suid=apache fsuid=apache egid=apache sgid=apache fsgid=apache tty=(none) ses=4 comm=munin-cgi-graph exe=/usr/bin/perl subj=unconfined_u:system_r:httpd_munin_script_t:s0 key=(null) type=AVC msg=audit(11/27/2015 05:26:12.964:434) : avc: denied { accept } for pid=3450 comm=munin-cgi-graph path=/var/run/mod_fcgid/1676.2 scontext=unconfined_u:system_r:httpd_munin_script_t:s0 tcontext=unconfined_u:system_r:httpd_t:s0 tclass=unix_stream_socket ---- type=SYSCALL msg=audit(11/27/2015 05:26:12.983:435) : arch=x86_64 syscall=shutdown success=yes exit=0 a0=0x4 a1=0x1 a2=0x24901d0 a3=0x7fff3e6c64b0 items=0 ppid=1676 pid=3450 auid=root uid=apache gid=apache euid=apache suid=apache fsuid=apache egid=apache sgid=apache fsgid=apache tty=(none) ses=4 comm=munin-cgi-graph exe=/usr/bin/perl subj=unconfined_u:system_r:httpd_munin_script_t:s0 key=(null) type=AVC msg=audit(11/27/2015 05:26:12.983:435) : avc: denied { shutdown } for pid=3450 comm=munin-cgi-graph path=/var/run/mod_fcgid/1676.2 scontext=unconfined_u:system_r:httpd_munin_script_t:s0 tcontext=unconfined_u:system_r:httpd_t:s0 tclass=unix_stream_socket ---- We need to back port manage_files_pattern(munin_script_t, munin_log_t, munin_log_t) and #!!!! This avc is allowed in the current policy allow httpd_munin_script_t httpd_t:unix_stream_socket { shutdown accept }; Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2016-0763.html |