Bug 659473

Summary: SELinux is preventing /usr/sbin/nagios (deleted) "ioctl" access on /usr/lib64/nagios/plugins/check_ifstatus.
Product: [Fedora] Fedora Reporter: Russell Odom <russ+bugzilla-redhat>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 13CC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:92fdea2d21b369dcfbd55432100705f1e37f0af3e53d94e489b6eee906ac2d27
Fixed In Version: selinux-policy-3.7.19-76.fc13 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-12-17 08:43:11 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Russell Odom 2010-12-02 21:09:23 UTC
Summary:

SELinux is preventing /usr/sbin/nagios (deleted) "ioctl" access on
/usr/lib64/nagios/plugins/check_ifstatus.

Detailed Description:

SELinux denied access requested by nagios. It is not expected that this access
is required by nagios and this access may signal an intrusion attempt. It is
also possible that the specific version or configuration of the application is
causing it to require additional access.

Allowing Access:

You can generate a local policy module to allow this access - see FAQ
(http://docs.fedoraproject.org/selinux-faq-fc5/#id2961385) Please file a bug
report.

Additional Information:

Source Context                unconfined_u:system_r:nagios_t:s0
Target Context                system_u:object_r:nagios_system_plugin_exec_t:s0
Target Objects                /usr/lib64/nagios/plugins/check_ifstatus [ file ]
Source                        nagios
Source Path                   /usr/sbin/nagios (deleted)
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           nagios-plugins-ifstatus-1.4.15-2.fc13
Policy RPM                    selinux-policy-3.7.19-73.fc13
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.34.7-61.fc13.x86_64 #1 SMP Tue Oct 19 04:06:30
                              UTC 2010 x86_64 x86_64
Alert Count                   1
First Seen                    Thu 02 Dec 2010 21:08:40 GMT
Last Seen                     Thu 02 Dec 2010 21:08:40 GMT
Local ID                      42f7d662-32fd-484b-99d0-2d4c3378dff0
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1291324120.901:89874): avc:  denied  { ioctl } for  pid=31422 comm="nagios" path="/usr/lib64/nagios/plugins/check_ifstatus" dev=dm-0 ino=931111 scontext=unconfined_u:system_r:nagios_t:s0 tcontext=system_u:object_r:nagios_system_plugin_exec_t:s0 tclass=file

node=(removed) type=SYSCALL msg=audit(1291324120.901:89874): arch=c000003e syscall=16 success=no exit=-13 a0=7 a1=5401 a2=7ffffa109640 a3=48 items=0 ppid=1 pid=31422 auid=500 uid=483 gid=467 euid=483 suid=483 fsuid=483 egid=467 sgid=467 fsgid=467 tty=(none) ses=1 comm="nagios" exe=2F7573722F7362696E2F6E6167696F73202864656C6574656429 subj=unconfined_u:system_r:nagios_t:s0 key=(null)



Hash String generated from  catchall,nagios,nagios_t,nagios_system_plugin_exec_t,file,ioctl
audit2allow suggests:

#============= nagios_t ==============
allow nagios_t nagios_system_plugin_exec_t:file ioctl;

Comment 1 Miroslav Grepl 2010-12-03 09:34:44 UTC
Fixed in selinux-policy-3.7.19-75.fc13

Comment 2 Fedora Update System 2010-12-10 13:48:23 UTC
selinux-policy-3.7.19-76.fc13 has been submitted as an update for Fedora 13.
https://admin.fedoraproject.org/updates/selinux-policy-3.7.19-76.fc13

Comment 3 Fedora Update System 2010-12-10 20:29:55 UTC
selinux-policy-3.7.19-76.fc13 has been pushed to the Fedora 13 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update selinux-policy'.  You can provide feedback for this update here: https://admin.fedoraproject.org/updates/selinux-policy-3.7.19-76.fc13

Comment 4 Fedora Update System 2010-12-17 08:42:33 UTC
selinux-policy-3.7.19-76.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.