Bug 1054971 - SELinux is preventing /usr/lib64/erlang/erts-5.10.4/bin/beam.smp from 'add_name' accesses on the directory couch.log.
Summary: SELinux is preventing /usr/lib64/erlang/erts-5.10.4/bin/beam.smp from 'add_na...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 20
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:1749362502c66f7f9e34000aaa8...
: 1055068 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-01-17 21:03 UTC by jaroslaw.herod
Modified: 2014-01-23 11:06 UTC (History)
4 users (show)

Fixed In Version: selinux-policy-3.12.1-119.fc20
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-01-23 11:06:49 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description jaroslaw.herod 2014-01-17 21:03:09 UTC
Description of problem:
1. install couchdb
2. start couchdb using systemctrl
SELinux is preventing /usr/lib64/erlang/erts-5.10.4/bin/beam.smp from 'add_name' accesses on the directory couch.log.

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

If you believe that beam.smp should be allowed add_name access on the couch.log directory 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:couchdb_log_t:s0
Target Objects                couch.log [ dir ]
Source                        beam.smp
Source Path                   /usr/lib64/erlang/erts-5.10.4/bin/beam.smp
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           erlang-erts-R16B-03.1.fc20.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-116.fc20.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.12.7-300.fc20.x86_64 #1 SMP Fri
                              Jan 10 15:35:31 UTC 2014 x86_64 x86_64
Alert Count                   10
First Seen                    2014-01-16 22:57:39 CET
Last Seen                     2014-01-17 22:01:44 CET
Local ID                      cbff9e62-f183-4c47-a2fc-dcff6c5c2a52

Raw Audit Messages
type=AVC msg=audit(1389992504.451:430): avc:  denied  { add_name } for  pid=3979 comm="beam.smp" name="couch.log" scontext=system_u:system_r:rabbitmq_beam_t:s0 tcontext=system_u:object_r:couchdb_log_t:s0 tclass=dir


type=SYSCALL msg=audit(1389992504.451:430): arch=x86_64 syscall=open success=no exit=EACCES a0=7f49bef01878 a1=441 a2=1b6 a3=1 items=0 ppid=1 pid=3979 auid=4294967295 uid=990 gid=987 euid=990 suid=990 fsuid=990 egid=987 sgid=987 fsgid=987 ses=4294967295 tty=(none) comm=beam.smp exe=/usr/lib64/erlang/erts-5.10.4/bin/beam.smp subj=system_u:system_r:rabbitmq_beam_t:s0 key=(null)

Hash: beam.smp,rabbitmq_beam_t,couchdb_log_t,dir,add_name

Additional info:
reporter:       libreport-2.1.11
hashmarkername: setroubleshoot
kernel:         3.12.7-300.fc20.x86_64
type:           libreport

Comment 1 jaroslaw.herod 2014-01-18 15:10:43 UTC
Description of problem:
1. install couchdb 
2. start couchdb using systemctrl

Additional info:
reporter:       libreport-2.1.11
hashmarkername: setroubleshoot
kernel:         3.12.7-300.fc20.x86_64
type:           libreport

Comment 2 Miroslav Grepl 2014-01-20 09:03:54 UTC
commit 2a63d7f592a27b1d4a031e46fd4bbf2687560e38
Author: Miroslav Grepl <mgrepl>
Date:   Mon Jan 20 10:03:33 2014 +0100

    Allow beam.smp to manage couchdb files

Comment 3 Miroslav Grepl 2014-01-20 09:04:07 UTC
*** Bug 1055068 has been marked as a duplicate of this bug. ***

Comment 4 Fedora Update System 2014-01-20 22:10:16 UTC
selinux-policy-3.12.1-119.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-119.fc20

Comment 5 Fedora Update System 2014-01-22 03:08:07 UTC
Package selinux-policy-3.12.1-119.fc20:
* should fix your issue,
* was pushed to the Fedora 20 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.12.1-119.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-1249/selinux-policy-3.12.1-119.fc20
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2014-01-23 11:06:49 UTC
selinux-policy-3.12.1-119.fc20 has been pushed to the Fedora 20 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.