Bug 1177016 - SELinux: rabbitmq-server cannot read symlink under /var/log
Summary: SELinux: rabbitmq-server cannot read symlink under /var/log
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 20
Hardware: Unspecified
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-12-23 19:37 UTC by Richard Su
Modified: 2015-03-10 00:56 UTC (History)
5 users (show)

Fixed In Version: selinux-policy-3.12.1-197.fc20
Clone Of:
Environment:
Last Closed: 2015-03-10 00:56:01 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
audit.log (436.49 KB, text/plain)
2014-12-23 19:37 UTC, Richard Su
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1396417 0 None None None Never

Description Richard Su 2014-12-23 19:37:40 UTC
Created attachment 972509 [details]
audit.log

Description of problem:
When /var/log/rabbitmq is a symlink to another directory, SELinux denies rabbitmq-server read access.

Version-Release number of selected component (if applicable):
rabbitmq-server-3.1.5-10.fc20.noarch
selinux-policy-targeted-3.12.1-196.fc20.noarch

How reproducible:
always

Steps to Reproduce:
1. Run tripleo devtest.sh

Actual results:
Rabbitmq denials logged.

Expected results:
No rabbitmq denials logged.

Additional info:

type=AVC msg=audit(1418940398.541:242): avc:  denied  { read } for  pid=6408 comm="beam" name="rabbitmq" dev="sda2" ino=62102 scontext=system_u:system_r:rabbitmq_t:s0 tcontext=unconfined_u:object_r:rabbitmq_var_log_t:s0 tclass=lnk_file permissive=1

Comment 1 Daniel Walsh 2015-01-02 12:22:39 UTC
8785ea14c22ed24cc702343a7e94f45c016f4c15 fixes this in git.

Comment 2 Lukas Vrabec 2015-01-15 15:22:06 UTC
commit 97437211df570ad3e4e07173fd2c8668df3e8969
Author: Dan Walsh <dwalsh>
Date:   Fri Jan 2 07:22:17 2015 -0500

    Allow rabbitmq_t to deal with link files created with its content

Comment 3 Fedora Update System 2015-01-27 16:56:53 UTC
selinux-policy-3.12.1-197.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-197.fc20

Comment 4 Fedora Update System 2015-01-30 04:41:47 UTC
Package selinux-policy-3.12.1-197.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-197.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-1398/selinux-policy-3.12.1-197.fc20
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2015-03-10 00:56:01 UTC
selinux-policy-3.12.1-197.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.