Bug 1379044
Summary: | Selinux is preventing mdadm from updating metadata on shutdown. Software raid is broken | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Oleg Samarin <osamarin68> | ||||
Component: | selinux-policy | Assignee: | Lukas Vrabec <lvrabec> | ||||
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | high | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 27 | CC: | dominick.grift, dwalsh, eagleton, harald, herrold, laurent.rineau__fedora, lvrabec, mgrepl, plautrba, robert.shteynfeld, rudd-o | ||||
Target Milestone: | --- | Keywords: | Reopened | ||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | selinux-policy-3.13.1-283.26.fc27 | Doc Type: | If docs needed, set a value | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2018-02-27 17:22:23 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: | |||||||
Attachments: |
|
Description
Oleg Samarin
2016-09-24 09:16:00 UTC
This bug has been raised by the change https://github.com/fedora-selinux/selinux-policy/commit/015047e1d962173e3789af3fad86198a3b5e3ac2 Since this, the domain init_t does not more have rights to files in other domains. I don't know how to fix the security domain of mdadm: it is run by dracut from initramfs. Dracut is not ready now to support selinux labels for initramfs contents, so the context of mdadm does not trnsit from init_t to mdadm_t. But as a workaround adding these rules solved the problem for me: ----------------------------------------------------------------- allow init_t mdadm_var_run_t:file rename; allow init_t mdadm_var_run_t:sock_file { relabelto write }; ----------------------------------------------------------------- May they be added to raid.te of fedora-selinux/selinux-policy ? This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component. Created attachment 1206498 [details]
This module solves the problem
The rules in the previous comment are not sufficient. Use ones from the file attached
Oleg, thanks for the fix. It seems to work. The bug is not limited to only mdadm. LUKS and even the umount command fail: https://bugzilla.redhat.com/show_bug.cgi?id=1385432 This message is a reminder that Fedora 24 is nearing its end of life. Approximately 2 (two) weeks from now Fedora will stop maintaining and issuing updates for Fedora 24. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '24'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 24 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. Fedora 24 changed to end-of-life (EOL) status on 2017-08-08. Fedora 24 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed. Was this fixed? The 'time based' close of this bug, without applying the patch, seems to block: https://github.com/dracutdevs/dracut/issues/342 it looks as though it may be an EASYFIX as there is a patch in hand selinux-policy-3.13.1-283.26.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-a9711c96b2 selinux-policy-3.13.1-283.26.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-2018-a9711c96b2 selinux-policy-3.13.1-283.26.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report. |