Bug 951780 - SELinux is preventing /usr/bin/perl from 'open' accesses on the file /usr/lib64/nagios/plugins/utils.pm.
Summary: SELinux is preventing /usr/bin/perl from 'open' accesses on the file /usr/lib...
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:ca4def5ca51d7e6b342a964be9b...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-04-13 05:24 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:22 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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

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

If you believe that perl should be allowed open 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                   1
First Seen                    2013-04-13 01:10:11 EDT
Last Seen                     2013-04-13 01:10:11 EDT
Local ID                      0401663b-9dd6-4872-bba4-d5b2a256c2b6

Raw Audit Messages
type=AVC msg=audit(1365829811.73:267): avc:  denied  { open } for  pid=32066 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(1365829811.73:267): arch=x86_64 syscall=open success=no exit=EACCES a0=168a050 a1=0 a2=1b6 a3=0 items=0 ppid=32065 pid=32066 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,open

audit2allow

#============= nagios_checkdisk_plugin_t ==============
#!!!! This avc is allowed in the current policy

allow nagios_checkdisk_plugin_t bin_t:file open;

audit2allow -R

#============= nagios_checkdisk_plugin_t ==============
#!!!! This avc is allowed in the current policy

allow nagios_checkdisk_plugin_t bin_t:file open;


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

Comment 1 Miroslav Grepl 2013-04-15 06:13:22 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.