r/vmhost: Work around libvirt SELinux policy bug
With the transition to modular _libvirt_ daemons, the SELinux policy is a bit more granular. Unfortunately, the new policy has a funny [bug]: it assumes directories named `storage` under `/run/libvirt` must be for _virtstoraged_ and labels them as such, which prevents _virtnetworkd_ from managing a virtual network named `storage`. To work around this, we need to give `/run/libvirt/network` a special label so that its children do not match the file transition pattern for _virtstoraged_ and thus keep their `virtnetworkd_var_run_t` label. [bug]: https://bugzilla.redhat.com/show_bug.cgi?id=2362040
This commit is contained in:
3
roles/vmhost/files/fix-run-libvirt-network.conf
Normal file
3
roles/vmhost/files/fix-run-libvirt-network.conf
Normal file
@@ -0,0 +1,3 @@
|
||||
[Service]
|
||||
ExecStartPre=+/bin/mkdir -p %t/libvirt/network
|
||||
ExecStartPre=+/bin/chcon -t virtnetworkd_var_run_t %t/libvirt/network
|
||||
Reference in New Issue
Block a user