Bug 1139587 - SELinux is preventing /usr/bin/python2.7 from 'ioctl' accesses on the file .
Summary: SELinux is preventing /usr/bin/python2.7 from 'ioctl' accesses on the file .
Keywords:
Status: CLOSED DUPLICATE of bug 1139581
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 20
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:664c383b08f702c441288f2fdb8...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-09-09 09:15 UTC by GuL
Modified: 2014-09-09 13:58 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-09-09 13:58:10 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description GuL 2014-09-09 09:15:51 UTC
Description of problem:
Hello,
This error occured when restarting munin-node service after enabling fail2ban module (ln -s /usr/share/munin/plugins/fail2ban /etc/munin/plugins/fail2ban). I am using fail2ban-0.9-2.fc20, munin-node-2.0.21-1.fc20, selinux-policy-3.12.1-182.fc20.
Thanks to solve it
SELinux is preventing /usr/bin/python2.7 from 'ioctl' accesses on the file .

*****  Plugin catchall (100. confidence) suggests   **************************

If vous pensez que python2.7 devrait être autorisé à accéder ioctl sur  file par défaut.
Then vous devriez rapporter ceci en tant qu'anomalie.
Vous pouvez générer un module de stratégie local pour autoriser cet accès.
Do
autoriser cet accès pour le moment en exécutant :
# grep fail2ban-client /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:services_munin_plugin_t:s0
Target Context                system_u:object_r:fail2ban_client_exec_t:s0
Target Objects                 [ file ]
Source                        fail2ban-client
Source Path                   /usr/bin/python2.7
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           python-2.7.5-13.fc20.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-182.fc20.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.15.10-201.fc20.x86_64 #1 SMP Wed
                              Aug 27 21:10:06 UTC 2014 x86_64 x86_64
Alert Count                   3
First Seen                    2014-09-09 11:09:43 CEST
Last Seen                     2014-09-09 11:10:05 CEST
Local ID                      d749f2ae-4ded-49f1-aab2-449441d7fcf6

Raw Audit Messages
type=AVC msg=audit(1410253805.94:3243): avc:  denied  { ioctl } for  pid=30773 comm="fail2ban-client" path="/usr/bin/fail2ban-client" dev="dm-0" ino=2236640 scontext=system_u:system_r:services_munin_plugin_t:s0 tcontext=system_u:object_r:fail2ban_client_exec_t:s0 tclass=file


type=SYSCALL msg=audit(1410253805.94:3243): arch=x86_64 syscall=ioctl success=no exit=EACCES a0=3 a1=5401 a2=7fffdb903390 a3=7fffdb903220 items=0 ppid=30771 pid=30773 auid=4294967295 uid=99 gid=99 euid=99 suid=99 fsuid=99 egid=99 sgid=99 fsgid=99 tty=(none) ses=4294967295 comm=fail2ban-client exe=/usr/bin/python2.7 subj=system_u:system_r:services_munin_plugin_t:s0 key=(null)

Hash: fail2ban-client,services_munin_plugin_t,fail2ban_client_exec_t,file,ioctl

Additional info:
reporter:       libreport-2.2.3
hashmarkername: setroubleshoot
kernel:         3.15.10-201.fc20.x86_64
type:           libreport

Comment 1 GuL 2014-09-09 09:49:37 UTC
Description of problem:
Hello,
This error occured when restarting munin-node service after enabling fail2ban plugin in /etc/munin/plugins/fail2ban. I am using fail2ban-0.9-2.fc20, munin-node-2.0.21-1.fc20 and selinux-policy-3.12.1-182.fc20.
Thanks to solve it.

Additional info:
reporter:       libreport-2.2.3
hashmarkername: setroubleshoot
kernel:         3.15.10-201.fc20.x86_64
type:           libreport

Comment 2 Miroslav Grepl 2014-09-09 13:58:10 UTC

*** This bug has been marked as a duplicate of bug 1139581 ***


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