Bug 659464 - SELinux is preventing /usr/sbin/nagios (deleted) "ioctl" access on /usr/lib64/nagios/plugins/check_mailq.
Summary: SELinux is preventing /usr/sbin/nagios (deleted) "ioctl" access on /usr/...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 13
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:0bd9cae55c3...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-12-02 20:49 UTC by Russell Odom
Modified: 2010-12-17 08:43 UTC (History)
2 users (show)

Fixed In Version: selinux-policy-3.7.19-76.fc13
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-12-17 08:43:16 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


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