Bug 1069640
Summary: | [fail2ban_t] SELinux is preventing /usr/sbin/ipset from create access on the netlink_socket | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Juan Orti <jorti> |
Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 20 | CC: | dominick.grift, dwalsh, jonathan.underwood, lvrabec, mgrepl |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | selinux-policy-3.12.1-135.fc20 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2014-03-21 09:25:37 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
Juan Orti
2014-02-25 13:00:35 UTC
SELinux is preventing /usr/sbin/ipset from bind access on the netlink_socket . ***** Plugin catchall (100. confidence) suggests ************************** If you believe that ipset should be allowed bind access on the netlink_socket by default. Then you should report this as a bug. You can generate a local policy module to allow this access. Do allow this access for now by executing: # grep ipset /var/log/audit/audit.log | audit2allow -M mypol # semodule -i mypol.pp Additional Information: Source Context system_u:system_r:fail2ban_t:s0 Target Context system_u:system_r:fail2ban_t:s0 Target Objects [ netlink_socket ] Source ipset Source Path /usr/sbin/ipset Port <Unknown> Host <removed> Source RPM Packages ipset-6.20.1-1.fc20.x86_64 Target RPM Packages Policy RPM selinux-policy-3.12.1-122.fc20.noarch Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name <removed> Platform Linux <removed> 3.13.3-201.fc20.x86_64 #1 SMP Fri Feb 14 19:08:32 UTC 2014 x86_64 x86_64 Alert Count 1 First Seen 2014-02-25 13:59:29 CET Last Seen 2014-02-25 13:59:29 CET Local ID e32d3ec8-0f2a-4d22-967b-e187c5a7b95f Raw Audit Messages type=AVC msg=audit(1393333169.675:197126): avc: denied { bind } for pid=7219 comm="ipset" scontext=system_u:system_r:fail2ban_t:s0 tcontext=system_u:system_r:fail2ban_t:s0 tclass=netlink_socket type=SYSCALL msg=audit(1393333169.675:197126): arch=x86_64 syscall=bind success=no exit=EACCES a0=3 a1=1df46f4 a2=c a3=7fff269f2370 items=0 ppid=6690 pid=7219 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=4294967295 tty=(none) comm=ipset exe=/usr/sbin/ipset subj=system_u:system_r:fail2ban_t:s0 key=(null) Hash: ipset,fail2ban_t,fail2ban_t,netlink_socket,bind If we label ipset as iptables_exec_t does this fix the problem? chcon -t iptables_exec_t /usr/sbin/ipset Added to rawhide. commit 579906616da011bb20f248507995a404c2664c42 Author: Miroslav Grepl <mgrepl> Date: Thu Feb 27 11:25:38 2014 +0100 Add support for ipset (In reply to Daniel Walsh from comment #2) > If we label ipset as iptables_exec_t does this fix the problem? > > chcon -t iptables_exec_t /usr/sbin/ipset It works. Thank you. thank you for testing. selinux-policy-3.12.1-135.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-135.fc20 Package selinux-policy-3.12.1-135.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-135.fc20' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2014-3813/selinux-policy-3.12.1-135.fc20 then log in and leave karma (feedback). selinux-policy-3.12.1-135.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report. |