Bug 1114821
Summary: | fail2ban selinux denial | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Florian La Roche <florian.laroche> |
Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
Status: | CLOSED ERRATA | QA Contact: | Milos Malik <mmalik> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 7.0 | CC: | jbnance, matic, mmalik, orion |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | selinux-policy-3.13.1-1.el7 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-03-05 10:41:40 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
Florian La Roche
2014-07-01 05:52:34 UTC
You can add a local policy for now. We allow it in Fedora/RHEL7.1 #grep fail2ban-client /var/log/audit/audit.log | audit2allow -M mypol #semodule -i mypol.pp Note sure what the final changes are from this report but here are the additions I had to make to get fail2ban to be fully functional for the ssh jails on selinux-policy-targeted-3.12.1-153.el7_0.11.noarch: require { type fail2ban_client_exec_t; type logrotate_t; class file { read execute open execute_no_trans }; } #============= logrotate_t ============== allow logrotate_t fail2ban_client_exec_t:file { read execute open execute_no_trans }; require { type syslogd_var_run_t; type fail2ban_t; class dir read; } #============= fail2ban_t ============== allow fail2ban_t syslogd_var_run_t:dir read; require { type syslogd_var_run_t; type fail2ban_t; class file { read open getattr }; } #============= fail2ban_t ============== allow fail2ban_t syslogd_var_run_t:file { read open getattr }; All rules mentioned in comment#7 are present in selinux-policy >= 3.13.1-9.el7. On what date will selinux-policy-3.13.1-9.el7 be available as an update? The public beta or general availability dates for RHEL-7.1 are not yet sure, but you can download the policy from here: * http://people.redhat.com/dwalsh/SELinux/RHEL7/noarch/ 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-2015-0458.html |