Bug 1518864

Summary: dbus-broker fails due to mmap denial
Product: [Fedora] Fedora Reporter: Tom Gundersen <tgunders>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 27CC: daherrma, dwalsh, lvrabec, mgrepl, plautrba, pmoore, tgunders
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: selinux-policy-3.13.1-283.19.fc27 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-01-02 16:50:11 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.