Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1285019
Summary: | SELinux is preventing systemd-logind from 'create' accesses on the file .#nologinDUxFTb. | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Vinicius Reis <angiolucci> |
Component: | selinux-policy | Assignee: | Lukas Vrabec <lvrabec> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | high | ||
Version: | 23 | CC: | adalsaady, dfulgido, dominick.grift, dwalsh, lvrabec, mauricio.pronet, mgrepl, plautrba, stefw, wolfgang.rupprecht |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Unspecified | ||
Whiteboard: | abrt_hash:41c659030036e40b5782668201cc32115126be8a86c424e9b892e258ed7b1202;VARIANT_ID=workstation; | ||
Fixed In Version: | selinux-policy-3.13.1-158.9.fc23 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-03-05 06:22:30 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Vinicius Reis
2015-11-24 16:57:25 UTC
Description of problem: shutdown -r Version-Release number of selected component: selinux-policy-3.13.1-155.fc23.noarch Additional info: reporter: libreport-2.6.3 hashmarkername: setroubleshoot kernel: 4.2.6-301.fc23.x86_64 type: libreport We see this sporadically in the Cockpit integration tests. For example: https://fedorapeople.org/groups/cockpit/logs/pull-3327-9b09bfed-fedora-23/log.html Cockpit is now working around this bug in its integration tests by ignoring the AVC: https://github.com/cockpit-project/cockpit/pull/3328 Currently systemd-logind is only allowed to create nologin file in /run, We should open it up transition on any file. There is github discussion about this issue. The point is it is about a generic transition in /run vs. filename transitions which can not be applied here because of .#nologinDUxFTb. There are systemd fixes in systemd code to label these files correctly according the policy context. We can try to add a generic transition to rawhide to see if it works correctly. Or get systemd-logind to claim a directory /run/logind/ or something I like idea to store this in /run/logind or /run/systemd/. This should be best for us. Mirek, could you attach link with the discussion? Thank you. Lets have this bug opened and have a discussion in https://github.com/systemd/systemd/pull/2100 Basically it will be fixed by systemd code changes. If we find a better solution we will remove these systemd code changes. As we discussed it with Dominick if we get all proper confinements we can revert systemd SELinux code changes. *** Bug 1305567 has been marked as a duplicate of this bug. *** To be honest, I'm not sure what is solution here after github discussion. Can I make generic transition that systemd_logind_t can create any file in /run labeled as system_logind_var_run_t ? Mirek, What is your opinion? Yes, I would go with this suggested solution from Dominick here. Yes, I also agree with this solution. Thank you. selinux-policy-3.13.1-158.9.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-ffbae3a870 selinux-policy-3.13.1-158.9.fc23 has been pushed to the Fedora 23 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-2016-ffbae3a870 selinux-policy-3.13.1-158.9.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report. *** Bug 1315477 has been marked as a duplicate of this bug. *** This is happening again on Fedora 24 with different AVC's, but essentially the same problem: https://bugzilla.redhat.com/show_bug.cgi?id=1317389 |