Bug 979624 - [RFE] Allow fail2ban to use firewall-cmd in actions scripts
Summary: [RFE] Allow fail2ban to use firewall-cmd in actions scripts
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy-targeted
Version: 19
Hardware: Unspecified
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-06-28 22:16 UTC by Edgar Hoch
Modified: 2013-07-07 01:33 UTC (History)
2 users (show)

Fixed In Version: selinux-policy-3.12.1-59.fc19
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-07-07 01:33:31 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
SELinux module policy file fail2ban-firewall-cmd.te (1.06 KB, text/plain)
2013-06-28 22:16 UTC, Edgar Hoch
no flags Details

Description Edgar Hoch 2013-06-28 22:16:25 UTC
Created attachment 766751 [details]
SELinux module policy file fail2ban-firewall-cmd.te

Description of problem:

SELinux does not allow fail2ban to use "firewall-cmd" in an fail2ban action script.

I provide in the attachment a SELinux module policy that allows that.
It would be nice if this would be added to the targeted policy.


Version-Release number of selected component (if applicable):
selinux-policy-targeted-3.12.1-54.fc19.noarch

How reproducible:
Always


For an example and use case of "firewall-cmd" in fail2ban see bug #979622 .

Comment 1 Daniel Walsh 2013-06-29 10:55:28 UTC
commit f1b66fd1c531db657efef84a6f1527d11615e956 adds these rules to git.

Comment 2 Fedora Update System 2013-07-03 19:50:36 UTC
selinux-policy-3.12.1-59.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-59.fc19

Comment 3 Fedora Update System 2013-07-05 02:14:19 UTC
Package selinux-policy-3.12.1-59.fc19:
* should fix your issue,
* was pushed to the Fedora 19 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-59.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-12373/selinux-policy-3.12.1-59.fc19
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2013-07-07 01:33:31 UTC
selinux-policy-3.12.1-59.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.