Bug 992938 - SELinux is preventing /usr/lib64/erlang/erts-5.10.1/bin/erlexec from 'execute' accesses on the file /usr/lib64/erlang/erts-5.10.1/bin/beam.smp.
Summary: SELinux is preventing /usr/lib64/erlang/erts-5.10.1/bin/erlexec from 'execute...
Keywords:
Status: CLOSED DUPLICATE of bug 992931
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 19
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:8d3279b4ab239d037f67b43dad0...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-08-05 09:00 UTC by Samium Gromoff
Modified: 2013-08-05 14:30 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-08-05 14:30:41 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Samium Gromoff 2013-08-05 09:00:26 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/lib64/erlang/erts-5.10.1/bin/erlexec from 'execute' accesses on the file /usr/lib64/erlang/erts-5.10.1/bin/beam.smp.

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

If you believe that erlexec should be allowed execute access on the beam.smp 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 erlexec /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_beam_exec_t:s0
Target Objects                /usr/lib64/erlang/erts-5.10.1/bin/beam.smp [ file
                              ]
Source                        erlexec
Source Path                   /usr/lib64/erlang/erts-5.10.1/bin/erlexec
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           erlang-erts-R16B-0.3.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                      824622ab-b3cb-4973-b010-92fa4b201045

Raw Audit Messages
type=AVC msg=audit(1375573261.527:1299): avc:  denied  { execute } for  pid=6368 comm="erlexec" name="beam.smp" dev="dm-3" ino=1857571 scontext=system_u:system_r:logrotate_t:s0-s0:c0.c1023 tcontext=system_u:object_r:rabbitmq_beam_exec_t:s0 tclass=file


type=SYSCALL msg=audit(1375573261.527:1299): arch=x86_64 syscall=execve success=no exit=EACCES a0=10e3050 a1=10e32c0 a2=7ffff0e67bd0 a3=3030303030303030 items=0 ppid=6366 pid=6368 auid=0 uid=991 gid=989 euid=991 suid=991 fsuid=991 egid=989 sgid=989 fsgid=989 ses=34 tty=(none) comm=erlexec exe=/usr/lib64/erlang/erts-5.10.1/bin/erlexec subj=system_u:system_r:logrotate_t:s0-s0:c0.c1023 key=(null)

Hash: erlexec,logrotate_t,rabbitmq_beam_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:30:41 UTC

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


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