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 1291940
Summary: | SELinux is preventing systemd from 'create' accesses on the unix_stream_socket Unknown. | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Vít Ondruch <vondruch> | ||||
Component: | selinux-policy | Assignee: | Lukas Vrabec <lvrabec> | ||||
Status: | CLOSED EOL | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | high | Docs Contact: | |||||
Priority: | high | ||||||
Version: | 26 | CC: | anass.1430, anper1979, awilliam, dominick.grift, dwalsh, dyuan, ekuric, fjin, fukidid, harelamnon, hlenor, jfrieben, jsmith.fedora, jtfas90, juan94_reggae, juliux.pigface, lvrabec, maxx, mgrepl, mmielke, nicolas.mailhot, palopezv, plautrba, pschindl, robatino, sami, sgallagh, tertiary, vindicators, vondruch, zhwang | ||||
Target Milestone: | --- | Keywords: | Reopened | ||||
Target Release: | --- | ||||||
Hardware: | x86_64 | ||||||
OS: | Unspecified | ||||||
Whiteboard: | AcceptedBlocker abrt_hash:3105d14f21e59edb726bf898f9802a354518963c750a7e1cd2349c661e1c3dba; | ||||||
Fixed In Version: | selinux-policy-3.13.1-167.fc24 selinux-policy-3.13.1-179.fc24 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2018-05-29 11:53:05 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: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 1230435, 1290357, 1325503 | ||||||
Attachments: |
|
Description
Vít Ondruch
2015-12-15 22:45:15 UTC
After boot? What does show rpm -q systemd ps -efZ |grep unconfined_service_t ? (In reply to Miroslav Grepl from comment #1) > After boot? Yes, always > rpm -q systemd $ rpm -q systemd systemd-228-6.gite35a787.fc24.x86_64 > ps -efZ |grep unconfined_service_t $ ps -efZ |grep unconfined_service_t system_u:system_r:unconfined_service_t:s0 root 1770 1 0 16:01 ? 00:00:00 /usr/libexec/udisks2/udisksd --no-debug unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 vondruch 3113 2720 0 16:03 pts/0 00:00:00 grep --color=auto unconfined_service_t Description of problem: Not sure... Version-Release number of selected component: selinux-policy-3.13.1-164.fc24.noarch Additional info: reporter: libreport-2.6.3 hashmarkername: setroubleshoot kernel: 4.4.0-0.rc6.git1.1.fc24.x86_64 type: libreport Description of problem: I believe this happened at startup of a recently updated Rawhide system. Additional info: reporter: libreport-2.6.3 hashmarkername: setroubleshoot kernel: 4.4.0-0.rc6.git1.2.fc24.x86_64 type: libreport Description of problem: This happens when trying to start the new virtlogd.socket from libvirt, which is required for virtlogd.service , which is required (per RHBZ #1290357) in order to start virtual machines, now. Additional info: reporter: libreport-2.6.3 hashmarkername: setroubleshoot kernel: 4.4.0-1.fc24.x86_64 type: libreport Proposing as a Final blocker, criterion "All system services present after installation with one of the release-blocking package sets must start properly, unless they require hardware which is not present." - https://fedoraproject.org/wiki/Fedora_24_Final_Release_Criteria#System_services . This bug results in virtlogd.service failing to start after install of Workstation, per openQA tests, e.g. https://openqa.stg.fedoraproject.org/tests/4307 . Description of problem: I attempted to create a new virtual machine using virt-manager. It failed with the error: Unable to complete install: 'Failed to connect socket to '/var/run/libvirt/virtlogd-sock': No such file or directory' Traceback (most recent call last): File "/usr/share/virt-manager/virtManager/asyncjob.py", line 90, in cb_wrapper callback(asyncjob, *args, **kwargs) File "/usr/share/virt-manager/virtManager/create.py", line 2277, in _do_async_install guest.start_install(meter=meter) File "/usr/share/virt-manager/virtinst/guest.py", line 501, in start_install noboot) File "/usr/share/virt-manager/virtinst/guest.py", line 416, in _create_guest dom = self.conn.createLinux(start_xml or final_xml, 0) File "/usr/lib64/python2.7/site-packages/libvirt.py", line 3595, in createLinux if ret is None:raise libvirtError('virDomainCreateLinux() failed', conn=self) libvirtError: Failed to connect socket to '/var/run/libvirt/virtlogd-sock': No such file or directory When I went and attempted to start virtlogd.socket manually with systemctl, I got the error: Jan 14 09:10:28 sgallagh540.sgallagh.rht systemd[1]: virtlogd.socket: Failed to listen on sockets: Permission denied Jan 14 09:10:28 sgallagh540.sgallagh.rht systemd[1]: Failed to listen on Virtual machine log manager socket. Examining the SELinux errors, it seems that this denial is to blame. Version-Release number of selected component: selinux-policy-3.13.1-165.fc24.noarch Additional info: reporter: libreport-2.6.3 hashmarkername: setroubleshoot kernel: 4.4.0-1.fc24.x86_64 type: libreport Discussed at 2016-01-18 blocker review meeting: [1]. This bug was accepted as a Final blocker: This bug violates the final criterion "All system services present after installation with one of the release-blocking package sets must start properly, unless they require hardware which is not present." [1] http://meetbot.fedoraproject.org/fedora-blocker-review/2016-01-18/f24-blocker-review.2016-01-18-17.02.html *** Bug 1299805 has been marked as a duplicate of this bug. *** Hi, Could anyone test this issue with this reproducer: 1. #semanage fcontext -a -t virtd_exec_t /usr/sbin/virtlogd 2. #restorecon -v /usr/sbin/virtlogd 3. reboot system It looks like this working on my Rawhide system. Thank you! (In reply to Lukas Vrabec from comment #10) The suggested action enables virtlogd to start up correctly, thanks! Description of problem: Launched virt-manager from GNOME desktop session. Version-Release number of selected component: selinux-policy-3.13.1-167.fc24.noarch Additional info: reporter: libreport-2.6.3 hashmarkername: setroubleshoot kernel: 4.3.3-300.fc23.x86_64 type: libreport (In reply to Lukas Vrabec from comment #10) > Hi, > > Could anyone test this issue with this reproducer: > > 1. #semanage fcontext -a -t virtd_exec_t /usr/sbin/virtlogd > 2. #restorecon -v /usr/sbin/virtlogd > 3. reboot system > > It looks like this working on my Rawhide system. > > Thank you! yes, this works on Rawhide. Tested commit 18f7e12057c5a676209736396b95ece0fdae9faf Author: Lukas Vrabec <lvrabec> Date: Wed Jan 20 10:09:40 2016 +0100 Label virtlogd binary as virtd_exec_t. BZ(1291940) *** Bug 1296309 has been marked as a duplicate of this bug. *** *** Bug 1293722 has been marked as a duplicate of this bug. *** This bug appears to have been reported against 'rawhide' during the Fedora 24 development cycle. Changing version to '24'. More information and reason for this action is here: https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora24#Rawhide_Rebase selinux-policy-3.13.1-178.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-1350c96015 selinux-policy-3.13.1-178.fc24 has been pushed to the Fedora 24 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-1350c96015 selinux-policy-3.13.1-179.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-8f142bb969 selinux-policy-3.13.1-179.fc24 has been pushed to the Fedora 24 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-8f142bb969 selinux-policy-3.13.1-179.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report. Description of problem: Always happens after any upgrade (using DNF), SELinux Violation by Systemd. Additional info: reporter: libreport-2.7.2 hashmarkername: setroubleshoot kernel: 4.6.7-300.fc24.x86_64 type: libreport This just started to happen recently (3 days ago max.) I'm reopening this, as it's happening to me on a fully-updated Rawhide system right now (selinux-policy-3.13.1-236.fc26.noarch) and attempting to report it via the SELinux Troubleshooter keeps marking it as duplicate of this issue. Same selinux report on RH25, with Policy RPM: selinux-policy-3.13.1-224.fc25.noarch selinux-policy-3.13.1-225.6.fc25.noarch 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. Re-opening per #c25; it may not *really* be the same bug, but still. Description of problem: I turn on the computer. Version-Release number of selected component: selinux-policy-3.13.1-224.fc25.noarch Additional info: reporter: libreport-2.9.1 hashmarkername: setroubleshoot kernel: 4.12.9-300.fc26.x86_64 type: libreport Description of problem: After upgrading from Fedora 25 to 26, this AVC denial message appears. Clicking the details shows that systemd is being blocked from create, read, and unlink. This happens at every login, even after full update of all packges via dnf update. Version-Release number of selected component: selinux-policy-3.13.1-224.fc25.noarch Additional info: reporter: libreport-2.9.1 hashmarkername: setroubleshoot kernel: 4.13.9-200.fc26.x86_64 type: libreport This message is a reminder that Fedora 26 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 26. 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 '26'. 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 26 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 26 changed to end-of-life (EOL) status on 2018-05-29. Fedora 26 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. Sorry I'm really new here (first comment actually), I didn't figure out how to reopen this. This is still happening on Fedora 28. ^C[root@localhost user]# audit2allow -a #============= systemd_logind_t ============== allow systemd_logind_t virtlogd_t:dbus send_msg; #============= virtlogd_t ============== allow virtlogd_t systemd_logind_t:dbus send_msg; allow virtlogd_t virt_etc_rw_t:dir search; audit2allow -a -M libvirt_fixes To make this policy package active, execute: semodule -i libvirt_fixes.pp [root@localhost user]# semodule -i libvirt_fixes.pp Are the permissions required to be allowed to run it properly. Created attachment 1452286 [details]
libvirt selinux bugfix module
|