Bug 992936

Summary: SELinux is preventing /usr/bin/bash from 'execute' accesses on the file /usr/lib64/erlang/erts-5.10.1/bin/epmd.
Product: [Fedora] Fedora Reporter: Samium Gromoff <_deepfire>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:37fc166eddb068d99beef5659adb87374e8670088d5a0e1dd8f241238a19e794
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-08-05 14:38:35 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 Samium Gromoff 2013-08-05 08:59:20 UTC
Description of problem:
I am trying to run ejabberd with PAM authentication, but SELinux shoots that down.

I have the following in my /etc/ejabberd/ejabberd.conf:
---- >8 ----
{auth_method, pam}.
{pam_service, "login"}.
---- 8< ----
SELinux is preventing /usr/bin/bash from 'execute' accesses on the file /usr/lib64/erlang/erts-5.10.1/bin/epmd.

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

If you believe that bash should be allowed execute access on the epmd 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 sh /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:logrotate_t:s0-s0:c0.c1023
Target Context                system_u:object_r:rabbitmq_epmd_exec_t:s0
Target Objects                /usr/lib64/erlang/erts-5.10.1/bin/epmd [ file ]
Source                        sh
Source Path                   /usr/bin/bash
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           bash-4.2.45-1.fc19.x86_64
Target RPM Packages           erlang-erts-R16B-0.3.fc19.x86_64
Policy RPM                    selinux-policy-3.12.1-66.fc19.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.9.5-301.fc19.x86_64 #1 SMP Tue
                              Jun 11 19:39:38 UTC 2013 x86_64 x86_64
Alert Count                   1
First Seen                    2013-08-04 03:41:01 MSK
Last Seen                     2013-08-04 03:41:01 MSK
Local ID                      189cc195-8039-48c8-bd6f-3ae0ddf444e3

Raw Audit Messages
type=AVC msg=audit(1375573261.526:1297): avc:  denied  { execute } for  pid=6373 comm="sh" name="epmd" dev="dm-3" ino=1857560 scontext=system_u:system_r:logrotate_t:s0-s0:c0.c1023 tcontext=system_u:object_r:rabbitmq_epmd_exec_t:s0 tclass=file


type=SYSCALL msg=audit(1375573261.526:1297): arch=x86_64 syscall=access success=no exit=EACCES a0=115c9a0 a1=1 a2=7fff13deaff0 a3=8 items=0 ppid=6368 pid=6373 auid=0 uid=991 gid=989 euid=991 suid=991 fsuid=991 egid=989 sgid=989 fsgid=989 ses=34 tty=(none) comm=sh exe=/usr/bin/bash subj=system_u:system_r:logrotate_t:s0-s0:c0.c1023 key=(null)

Hash: sh,logrotate_t,rabbitmq_epmd_exec_t,file,execute

Additional info:
reporter:       libreport-2.1.6
hashmarkername: setroubleshoot
kernel:         3.9.5-301.fc19.x86_64
type:           libreport

Comment 1 Miroslav Grepl 2013-08-05 14:38:35 UTC

*** This bug has been marked as a duplicate of bug 992920 ***