mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-04 20:31:13 +00:00
126cb34a20
Using virtCgroupNewSelf() is not correct with cgroups v2 because the the virt-host-validate process is executed from from the same cgroup context as the terminal and usually not all controllers are enabled by default. To do a proper check we need to use the root cgroup to see what controllers are actually available. Libvirt or systemd ensures that all controllers are available for VMs as well. This still doesn't solve the devices controller with cgroups v2 where there is no controller as it was replaced by eBPF. Currently libvirt tries to query eBPF programs which usually works only for root as regular users will get permission denied for that operation. Fixes: https://gitlab.com/libvirt/libvirt/-/issues/94 Signed-off-by: Pavel Hrdina <phrdina@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com> |
||
---|---|---|
.. | ||
bash-completion | ||
nss | ||
wireshark | ||
libvirt_recover_xattrs.sh | ||
libvirt_win_icon_16x16.ico | ||
libvirt_win_icon_32x32.ico | ||
libvirt_win_icon_48x48.ico | ||
libvirt_win_icon_64x64.ico | ||
libvirt-guests.service.in | ||
libvirt-guests.sh.in | ||
libvirt-guests.sysconf | ||
meson.build | ||
virsh_win_icon.rc | ||
virsh-backup.c | ||
virsh-backup.h | ||
virsh-checkpoint.c | ||
virsh-checkpoint.h | ||
virsh-completer-checkpoint.c | ||
virsh-completer-checkpoint.h | ||
virsh-completer-domain.c | ||
virsh-completer-domain.h | ||
virsh-completer-host.c | ||
virsh-completer-host.h | ||
virsh-completer-interface.c | ||
virsh-completer-interface.h | ||
virsh-completer-network.c | ||
virsh-completer-network.h | ||
virsh-completer-nodedev.c | ||
virsh-completer-nodedev.h | ||
virsh-completer-nwfilter.c | ||
virsh-completer-nwfilter.h | ||
virsh-completer-pool.c | ||
virsh-completer-pool.h | ||
virsh-completer-secret.c | ||
virsh-completer-secret.h | ||
virsh-completer-snapshot.c | ||
virsh-completer-snapshot.h | ||
virsh-completer-volume.c | ||
virsh-completer-volume.h | ||
virsh-completer.c | ||
virsh-completer.h | ||
virsh-console.c | ||
virsh-console.h | ||
virsh-domain-monitor.c | ||
virsh-domain-monitor.h | ||
virsh-domain.c | ||
virsh-domain.h | ||
virsh-edit.c | ||
virsh-host.c | ||
virsh-host.h | ||
virsh-interface.c | ||
virsh-interface.h | ||
virsh-network.c | ||
virsh-network.h | ||
virsh-nodedev.c | ||
virsh-nodedev.h | ||
virsh-nwfilter.c | ||
virsh-nwfilter.h | ||
virsh-pool.c | ||
virsh-pool.h | ||
virsh-secret.c | ||
virsh-secret.h | ||
virsh-snapshot.c | ||
virsh-snapshot.h | ||
virsh-util.c | ||
virsh-util.h | ||
virsh-volume.c | ||
virsh-volume.h | ||
virsh.c | ||
virsh.h | ||
virt-admin-completer.c | ||
virt-admin-completer.h | ||
virt-admin.c | ||
virt-admin.h | ||
virt-host-validate-bhyve.c | ||
virt-host-validate-bhyve.h | ||
virt-host-validate-common.c | ||
virt-host-validate-common.h | ||
virt-host-validate-lxc.c | ||
virt-host-validate-lxc.h | ||
virt-host-validate-qemu.c | ||
virt-host-validate-qemu.h | ||
virt-host-validate.c | ||
virt-login-shell-helper.c | ||
virt-login-shell.c | ||
virt-login-shell.conf | ||
virt-pki-validate.in | ||
virt-sanlock-cleanup.in | ||
virt-xml-validate.in | ||
vsh-table.c | ||
vsh-table.h | ||
vsh.c | ||
vsh.h |