Bug 1635803 - Libvirt 4.4 needs additional SELinux policy rules
Summary: Libvirt 4.4 needs additional SELinux policy rules
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 29
Hardware: All
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-10-03 17:34 UTC by Stefan Berger
Modified: 2018-10-30 17:23 UTC (History)
5 users (show)

Fixed In Version: selinux-policy-3.14.2-37.fc29
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-10-30 17:23:32 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Stefan Berger 2018-10-03 17:34:14 UTC
While creating SELinux policy rules for running swtpm with QEMU started by libvirt, I came across the following rules that are needed to start a QEMU VM with libvirt 4.4. If I recall correctly something change in 4.4 related to Unix sockets and QEMU monitor. So, here are the needed rules:


allow svirt_t virtd_t:unix_stream_socket { read write getopt getattr accept };
allow svirt_tcg_t virtd_t:unix_stream_socket { read write getopt getattr accept };

Comment 1 Lukas Vrabec 2018-10-08 17:24:11 UTC
commit 2db798fbe957b98580fd0ff5be65109aef5bf230 (HEAD -> rawhide, origin/rawhide, origin/HEAD)
Author: Lukas Vrabec <lvrabec>
Date:   Mon Oct 8 19:23:49 2018 +0200

    Allow virt_domain to read/write to virtd_t unix_stream socket because of new version of libvirt 4.4. BZ(1635803)

Comment 2 Fedora Update System 2018-10-10 07:48:13 UTC
selinux-policy-3.14.2-37.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2018-b1d8c6335d

Comment 3 Fedora Update System 2018-10-10 15:50:20 UTC
selinux-policy-3.14.2-37.fc29 has been pushed to the Fedora 29 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-b1d8c6335d

Comment 4 Fedora Update System 2018-10-30 17:23:32 UTC
selinux-policy-3.14.2-37.fc29 has been pushed to the Fedora 29 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.