Bug 659464

Summary: SELinux is preventing /usr/sbin/nagios (deleted) "ioctl" access on /usr/lib64/nagios/plugins/check_mailq.
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:0bd9cae55c38ba65cf463d56e6b4155961f8cb03e23df39e53c87af9b1078084
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:16 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 20:49:38 UTC
Summary:

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

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_mail_plugin_exec_t:s0
Target Objects                /usr/lib64/nagios/plugins/check_mailq [ file ]
Source                        nagios
Source Path                   /usr/sbin/nagios (deleted)
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           nagios-plugins-mailq-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 20:43:24 GMT
Last Seen                     Thu 02 Dec 2010 20:43:24 GMT
Local ID                      f9ba2739-e409-4436-8ff3-5e611f45766d
Line Numbers                  

Raw Audit Messages            

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

node=(removed) type=SYSCALL msg=audit(1291322604.984:89828): 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_mail_plugin_exec_t,file,ioctl
audit2allow suggests:

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

Comment 1 Russell Odom 2010-12-02 20:53:34 UTC
See also bug 659468.

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

Comment 3 Fedora Update System 2010-12-10 13:48:28 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 4 Fedora Update System 2010-12-10 20:29:59 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 5 Fedora Update System 2010-12-17 08:42:39 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.