Bug 1065698
Summary: | SELinux is preventing /usr/sbin/collectd from write access on the sock_file /var/lib/mysql/mysql.sock. | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Joel Uckelman <uckelman> |
Component: | selinux-policy | Assignee: | Lukas Vrabec <lvrabec> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 20 | CC: | dominick.grift, dwalsh, lvrabec, mgrepl |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | selinux-policy-3.12.1-127.fc20 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2014-03-12 12:19:25 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
Joel Uckelman
2014-02-15 23:29:00 UTC
Hi, Could you reproduce this bug in Permissive mode, and paste here AVC logs? Thank you. (In reply to Lukas Vrabec from comment #1) > Hi, > > Could you reproduce this bug in Permissive mode, and paste here AVC logs? > > Thank you. This is what I see in /var/log/audit.log after restarting collectd in permissive mode: type=SERVICE_START msg=audit(1392551254.505:43362): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg=' comm="collectd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success' type=AVC msg=audit(1392551254.527:43363): avc: denied { write } for pid=2195 comm="collectd" name="mysql.sock" dev="dm-0" ino=54526298 scontext=system_u:system_r:collectd_t:s0 tcontext=system_u:object_r:mysqld_var_run_t:s0 tclass=sock_file type=SYSCALL msg=audit(1392551254.527:43363): arch=c000003e syscall=42 success=yes exit=0 a0=7 a1=7ffd5285f840 a2=6e a3=7ffd5285f4c0 items=0 ppid=1 pid=2195 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=4294967295 tty=(none) comm="collectd" exe="/usr/sbin/collectd" subj=system_u:system_r:collectd_t:s0 key=(null) I guess collectd needs to use a mysql database. commit bc0fe809a294714ad4a8e6fec88ff9fb10515988 fixes this in git. (In reply to Daniel Walsh from comment #3) > I guess collectd needs to use a mysql database. To clarify: collectd needs to connect to mysqld if you've turned on the plugin for monitoring mysqld. collectd doesn't store data in a mysql database. > commit bc0fe809a294714ad4a8e6fec88ff9fb10515988 fixes this in git. Thanks for the fix. selinux-policy-3.12.1-126.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-126.fc20 The updated policy works for collectd---but completely breaks httpd and mariadb. It looks like it's denying them access to /tmp. Package selinux-policy-3.12.1-126.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-126.fc20' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2014-2801/selinux-policy-3.12.1-126.fc20 then log in and leave karma (feedback). Package selinux-policy-3.12.1-127.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-127.fc20' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2014-2801/selinux-policy-3.12.1-127.fc20 then log in and leave karma (feedback). selinux-policy-3.12.1-127.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report. |