Bug 951779 - SELinux is preventing /usr/bin/perl from 'ioctl' accesses on the file /usr/lib64/nagios/plugins/utils.pm.
Summary: SELinux is preventing /usr/bin/perl from 'ioctl' accesses on the file /usr/li...
Keywords:
Status: CLOSED DUPLICATE of bug 951778
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 17
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:61b003caa6a46f190c2817a562c...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-04-13 05:23 UTC by Raman Gupta
Modified: 2013-04-15 06:13 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-04-15 06:13:29 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Raman Gupta 2013-04-13 05:23:07 UTC
Description of problem:
Seems to be the check_linux_raid module of nagios.
SELinux is preventing /usr/bin/perl from 'ioctl' accesses on the file /usr/lib64/nagios/plugins/utils.pm.

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

If you believe that perl should be allowed ioctl access on the utils.pm file 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 check_linux_rai /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:nagios_checkdisk_plugin_t:s0
Target Context                system_u:object_r:bin_t:s0
Target Objects                /usr/lib64/nagios/plugins/utils.pm [ file ]
Source                        check_linux_rai
Source Path                   /usr/bin/perl
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           perl-5.14.4-224.fc17.x86_64
Target RPM Packages           nagios-plugins-perl-1.4.16-5.fc17.x86_64
Policy RPM                    selinux-policy-3.10.0-167.fc17.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.8.4-102.fc17.x86_64 #1 SMP Sun
                              Mar 24 13:09:09 UTC 2013 x86_64 x86_64
Alert Count                   2
First Seen                    2013-04-13 01:15:11 EDT
Last Seen                     2013-04-13 01:20:11 EDT
Local ID                      b04b7e6d-c9e0-4fe4-986b-028f943c82b7

Raw Audit Messages
type=AVC msg=audit(1365830411.255:301): avc:  denied  { ioctl } for  pid=4211 comm="check_linux_rai" path="/usr/lib64/nagios/plugins/utils.pm" dev="dm-0" ino=924980 scontext=system_u:system_r:nagios_checkdisk_plugin_t:s0 tcontext=system_u:object_r:bin_t:s0 tclass=file


type=SYSCALL msg=audit(1365830411.255:301): arch=x86_64 syscall=ioctl success=no exit=EACCES a0=4 a1=5401 a2=7fff38c26b50 a3=50 items=0 ppid=4209 pid=4211 auid=4294967295 uid=993 gid=990 euid=993 suid=993 fsuid=993 egid=990 sgid=990 fsgid=990 ses=4294967295 tty=(none) comm=check_linux_rai exe=/usr/bin/perl subj=system_u:system_r:nagios_checkdisk_plugin_t:s0 key=(null)

Hash: check_linux_rai,nagios_checkdisk_plugin_t,bin_t,file,ioctl

audit2allow

#============= nagios_checkdisk_plugin_t ==============
allow nagios_checkdisk_plugin_t bin_t:file ioctl;

audit2allow -R

#============= nagios_checkdisk_plugin_t ==============
allow nagios_checkdisk_plugin_t bin_t:file ioctl;


Additional info:
hashmarkername: setroubleshoot
kernel:         3.8.4-102.fc17.x86_64
type:           libreport

Comment 1 Raman Gupta 2013-04-13 06:23:03 UTC
Description of problem:
nagios check_linux_raid module

Additional info:
hashmarkername: setroubleshoot
kernel:         3.8.4-102.fc17.x86_64
type:           libreport

Comment 2 Miroslav Grepl 2013-04-15 06:13:29 UTC

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


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