Bug 981452 - SELinux is preventing /usr/lib64/erlang/erts-5.10.1/bin/beam.smp from 'create' accesses on the file riak_core_ring.default.20130704044727.tmp.
Summary: SELinux is preventing /usr/lib64/erlang/erts-5.10.1/bin/beam.smp from 'create...
Keywords:
Status: CLOSED DUPLICATE of bug 981448
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:aaff47403aef68ced08a3e0f965...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-07-04 18:45 UTC by Mark
Modified: 2013-07-07 07:12 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-07-07 07:12:42 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Mark 2013-07-04 18:45:50 UTC
Description of problem:
SELinux is preventing /usr/lib64/erlang/erts-5.10.1/bin/beam.smp from 'create' accesses on the file riak_core_ring.default.20130704044727.tmp.

*****  Plugin catchall_labels (83.8 confidence) suggests  ********************

If you want to allow beam.smp to have create access on the riak_core_ring.default.20130704044727.tmp file
Then you need to change the label on riak_core_ring.default.20130704044727.tmp
Do
# semanage fcontext -a -t FILE_TYPE 'riak_core_ring.default.20130704044727.tmp'
where FILE_TYPE is one of the following: rabbitmq_var_lib_t, rabbitmq_var_log_t, rabbitmq_var_run_t, var_log_t, var_run_t. 
Then execute: 
restorecon -v 'riak_core_ring.default.20130704044727.tmp'


*****  Plugin catchall (17.1 confidence) suggests  ***************************

If you believe that beam.smp should be allowed create access on the riak_core_ring.default.20130704044727.tmp 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 beam.smp /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:rabbitmq_beam_t:s0
Target Context                system_u:object_r:var_lib_t:s0
Target Objects                riak_core_ring.default.20130704044727.tmp [ file ]
Source                        beam.smp
Source Path                   /usr/lib64/erlang/erts-5.10.1/bin/beam.smp
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           erlang-erts-R16B-0.3.fc19.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-54.fc19.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.9.8-300.fc19.x86_64 #1 SMP Thu
                              Jun 27 19:24:23 UTC 2013 x86_64 x86_64
Alert Count                   5
First Seen                    2013-07-04 00:47:26 EDT
Last Seen                     2013-07-04 00:47:27 EDT
Local ID                      5db42194-c6c9-482c-9710-b98035ee65da

Raw Audit Messages
type=AVC msg=audit(1372913247.10:946): avc:  denied  { create } for  pid=6103 comm="beam.smp" name="riak_core_ring.default.20130704044727.tmp" scontext=system_u:system_r:rabbitmq_beam_t:s0 tcontext=system_u:object_r:var_lib_t:s0 tclass=file


type=SYSCALL msg=audit(1372913247.10:946): arch=x86_64 syscall=open success=no exit=EACCES a0=7fd677243548 a1=241 a2=1b6 a3=0 items=0 ppid=5943 pid=6103 auid=4294967295 uid=992 gid=991 euid=992 suid=992 fsuid=992 egid=991 sgid=991 fsgid=991 ses=4294967295 tty=pts0 comm=beam.smp exe=/usr/lib64/erlang/erts-5.10.1/bin/beam.smp subj=system_u:system_r:rabbitmq_beam_t:s0 key=(null)

Hash: beam.smp,rabbitmq_beam_t,var_lib_t,file,create

Additional info:
reporter:       libreport-2.1.5
hashmarkername: setroubleshoot
kernel:         3.9.8-300.fc19.x86_64
type:           libreport

Comment 1 Miroslav Grepl 2013-07-07 07:12:42 UTC

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


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