Bug 1518864 - dbus-broker fails due to mmap denial
Summary: dbus-broker fails due to mmap denial
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 27
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-11-29 16:32 UTC by Tom Gundersen
Modified: 2018-01-02 16:50 UTC (History)
7 users (show)

Fixed In Version: selinux-policy-3.13.1-283.19.fc27
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-01-02 16:50:11 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Tom Gundersen 2017-11-29 16:32:32 UTC
As of F27, dbus-broker unconditionally fails on boot when SELinux is enabled with

AVC avc:  denied  { map } for  pid=985 comm="dbus-broker" path=2F6D656D66643A646275732D62726F6B65722D6C6F67202864656C6574656429 dev="tmpfs" ino=31832 scontext=system_u:system_r:system_dbusd_t:s0-s0:c0.c1023 tcontext=system_u:object_r:tmpfs_t:s0 tclass=file permissive=0

Comment 1 Lukas Vrabec 2017-12-13 14:40:23 UTC
Are you able to reproduce it? Could you attach reproducer? 

Thanks,
Lukas.

Comment 2 Tom Gundersen 2017-12-13 16:12:39 UTC
Yes, just boot with dbus-broker and SELinux enabled on F27. `systemctl enable dbus-broker && systemctl --global enable dbus-broker`.

We mmap an memfd that we use to write log-messages into. So due to the new SELinux mmap feature this fails any time we attempt to write to the log (taking down the daemon).

Comment 3 Fedora Update System 2017-12-20 11:21:32 UTC
selinux-policy-3.13.1-283.19.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2017-8225c4e502

Comment 4 Fedora Update System 2017-12-20 11:28:08 UTC
selinux-policy-3.13.1-283.19.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2017-8225c4e502

Comment 5 Fedora Update System 2017-12-21 20:23:11 UTC
selinux-policy-3.13.1-283.19.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-8225c4e502

Comment 6 Fedora Update System 2018-01-02 16:50:11 UTC
selinux-policy-3.13.1-283.19.fc27 has been pushed to the Fedora 27 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.