Bug 887028

Summary: SELinux is preventing /usr/bin/bash from using the 'signal' accesses on a process.
Product: [Fedora] Fedora Reporter: Till Maas <opensource>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:8fb3869b2b2a34bd707d24cd70040844c9a221d433e65ff1f21b8ee2dfa525a4
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-01-07 04:04:23 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 Till Maas 2012-12-13 21:29:22 UTC
Description of problem:
I uninstalled and installed munin.
SELinux is preventing /usr/bin/bash from using the 'signal' accesses on a process.

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

If sie denken, dass es bash standardmäßig erlaubt sein sollte, signal Zugriff auf services_munin_plugin_t Prozesse zu erhalten.
Then sie sollten dies als Fehler melden.
Um diesen Zugriff zu erlauben, können Sie ein lokales Richtlinien-Modul erstellen.
Do
zugriff jetzt erlauben, indem Sie die nachfolgenden Befehle ausführen:
# grep http_loadtime /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:services_munin_plugin_t:s0
Target Context                system_u:system_r:services_munin_plugin_t:s0
Target Objects                 [ process ]
Source                        http_loadtime
Source Path                   /usr/bin/bash
Port                          <Unbekannt>
Host                          (removed)
Source RPM Packages           bash-4.2.39-2.fc17.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.10.0-161.fc17.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.6.9-2.fc17.x86_64 #1 SMP Tue Dec
                              4 13:26:04 UTC 2012 x86_64 x86_64
Alert Count                   2
First Seen                    2012-12-13 22:25:57 CET
Last Seen                     2012-12-13 22:25:57 CET
Local ID                      0a9eeec5-d4ec-4ee8-8c1b-617b9baf75d9

Raw Audit Messages
type=AVC msg=audit(1355433957.315:8849): avc:  denied  { signal } for  pid=31711 comm="http_loadtime" scontext=system_u:system_r:services_munin_plugin_t:s0 tcontext=system_u:system_r:services_munin_plugin_t:s0 tclass=process


type=SYSCALL msg=audit(1355433957.315:8849): arch=x86_64 syscall=kill success=no exit=EACCES a0=7bdf a1=1 a2=0 a3=7fffd97fdb80 items=0 ppid=31698 pid=31711 auid=4294967295 uid=99 gid=99 euid=99 suid=99 fsuid=99 egid=99 sgid=99 fsgid=99 tty=(none) ses=4294967295 comm=http_loadtime exe=/usr/bin/bash subj=system_u:system_r:services_munin_plugin_t:s0 key=(null)

Hash: http_loadtime,services_munin_plugin_t,services_munin_plugin_t,process,signal

audit2allow

#============= services_munin_plugin_t ==============
allow services_munin_plugin_t self:process signal;

audit2allow -R

#============= services_munin_plugin_t ==============
allow services_munin_plugin_t self:process signal;


Additional info:
hashmarkername: setroubleshoot
kernel:         3.6.9-2.fc17.x86_64
type:           libreport

Comment 1 Miroslav Grepl 2012-12-14 09:41:46 UTC
Added.

commit fb3541bac2d481b64b27521cecb2b682829ea807
Author: Miroslav Grepl <mgrepl>
Date:   Fri Dec 14 10:39:07 2012 +0100

    Allow munin plugins to send a signal to itself

Comment 2 Fedora Update System 2012-12-17 18:44:34 UTC
selinux-policy-3.10.0-165.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/selinux-policy-3.10.0-165.fc17

Comment 3 Fedora Update System 2012-12-18 02:40:55 UTC
Package selinux-policy-3.10.0-165.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.10.0-165.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-20544/selinux-policy-3.10.0-165.fc17
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2013-01-05 06:46:00 UTC
Package selinux-policy-3.10.0-166.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.10.0-166.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-20544/selinux-policy-3.10.0-166.fc17
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2013-01-07 04:04:24 UTC
selinux-policy-3.10.0-166.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.