Bug 1065336
Summary: | SELinux is preventing /usr/sbin/collectd from using the net_admin capability | ||
---|---|---|---|
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:09 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-14 11:46:26 UTC
commit 6f8cc21c4ce00e17ca02aaa7e5e881825cc4406c Author: Lukas Vrabec <lvrabec> Date: Fri Feb 14 13:02:22 2014 +0100 Add net_admin capability in collectd policy 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. The update would almost assuredly not effect them. What AVC's are you seeing? I doubt that the changes for collectd did this---but it looks like there are tons of other changes in 3.12.1-126. Here's the start of what I saw: type=AVC msg=audit(1392796636.545:159): avc: denied { search } for pid=1511 comm="mysqld" name="tmp" dev="dm-0" ino=54526253 scontext=system_u:system_r:mysqld_t:s0 tcontext=system_u:object_r:init_tmp_t:s0 tclass=dir type=AVC msg=audit(1392796638.290:161): avc: denied { search } for pid=1442 comm="/usr/sbin/httpd" name="tmp" dev="tmpfs" ino=24525 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:init_tmp_t:s0 tclass=dir type=AVC msg=audit(1392798771.747:478): avc: denied { search } for pid=2262 comm="httpd" name="tmp" dev="tmpfs" ino=28958 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:init_tmp_t:s0 tclass=dir type=AVC msg=audit(1392798771.747:479): avc: denied { search } for pid=2262 comm="httpd" name="tmp" dev="dm-0" ino=54526296 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:init_tmp_t:s0 tclass=dir type=AVC msg=audit(1392798771.747:481): avc: denied { search } for pid=2262 comm="httpd" name="tmp" dev="tmpfs" ino=28958 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:init_tmp_t:s0 tclass=dir This looks like the tmp dir is mislabled. It should not be init_tmp_t? ls -lZd /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). (In reply to Daniel Walsh from comment #6) > This looks like the tmp dir is mislabled. It should not be init_tmp_t? > > ls -lZd /tmp drwxrwxrwt. root root system_u:object_r:tmp_t:s0 /tmp// No idea how /tmp got mislabeled, if it is indeed mislabeled. 'restorecon -v /tmp' did not indicate that it was relabeling /tmp. 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. |