Bug 640796
Summary: | SELinux is preventing /usr/bin/python "dac_override" access . | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Russell Odom <russ+bugzilla-redhat> |
Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | low | ||
Version: | 13 | CC: | dwalsh, mgrepl |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | setroubleshoot_trace_hash:904e9f7454c0082e3ce2850f36bd807b6b9c4d39af5fee78124108be4b62b929 | ||
Fixed In Version: | selinux-policy-3.7.19-65.fc13 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2010-10-19 07:06:09 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
Russell Odom
2010-10-06 19:44:52 UTC
This occurred when restarting fail2ban. OK, an update on this, it only seems to occur when I enable a jail which tries to read /var/log/exim/reject.log: [exim-spammers] enabled = true filter = exim-spammers action = iptables-allports[name=exim-spammers] mynetwatchman[port=25] dshield[port=25] complain[logpath=/var/log/exim/main.log] logpath = /var/log/exim/reject.log maxretry = 1 This is not really much different to any of my other jails, which work fine. In fail2ban.log, I see messages like: 2010-10-06 21:58:47,426 fail2ban.comm : WARNING Invalid command: ['set', 'exim-spammers', 'addlogpath', '/var/log/exim/reject.log'] Could you add your output of the following command # ls -lZ /var/log/exim/reject.log dac_override means that a root process is trying to access a file/dir which root does not over permission to look at based on the permissions. [root@gigalith ~]# ls -lZ /var/log/exim/reject.log -rw-r-----. exim exim unconfined_u:object_r:exim_log_t:s0 /var/log/exim/reject.log Now it's clear. Dan, I think we should add allow fail2ban self:capability { dac_read_search dac_override }; For reading all log files. Ok. Fixed in selinux-policy-3.7.19-65.fc13 selinux-policy-3.7.19-65.fc13 has been submitted as an update for Fedora 13. https://admin.fedoraproject.org/updates/selinux-policy-3.7.19-65.fc13 Have installed selinux-policy-3.7.19-65.fc13.noarch and selinux-policy-targeted-3.7.19-65.fc13.noarch from koji and these appear to fix the problem for me. Update karma please selinux-policy-3.7.19-65.fc13 has been pushed to the Fedora 13 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update selinux-policy'. You can provide feedback for this update here: https://admin.fedoraproject.org/updates/selinux-policy-3.7.19-65.fc13 selinux-policy-3.7.19-65.fc13 has been pushed to the Fedora 13 stable repository. If problems still persist, please make note of it in this bug report. |