]> xenbits.xensource.com Git - libvirt.git/commit
util: vircgroupv2: stop enabling missing controllers with systemd
authorPavel Hrdina <phrdina@redhat.com>
Thu, 27 Jun 2019 12:54:54 +0000 (14:54 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Fri, 28 Jun 2019 13:17:37 +0000 (15:17 +0200)
commit62dd4d25a2bc5ee33ed22728dc79a5da99906748
tree45c9c139845bdc88ea8781071d77e33d042fea86
parentd117431143d5b6dcfc8fae4a6b3fae23881d0937
util: vircgroupv2: stop enabling missing controllers with systemd

Because of a systemd delegation policy [1] we should not write to any
cgroups files owned by systemd which in case of cgroups v2 includes
'cgroups.subtree_control'.

systemd will enable controllers automatically for us to have them
available for VM cgroups.

[1] <https://github.com/systemd/systemd/blob/master/docs/CGROUP_DELEGATION.md>

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/util/vircgroup.c
src/util/vircgroupbackend.h
src/util/vircgroupv2.c