cgroup: don't trim cgroup trees created by someone else
authorMichal Sekletar <msekleta@redhat.com>
Fri, 19 Sep 2014 15:14:10 +0000 (17:14 +0200)
committerMichael Biebl <biebl@debian.org>
Wed, 12 Sep 2018 17:07:38 +0000 (18:07 +0100)
commitd7736b038b14147a2069e4e5aabac040528d0dcd
tree0967f461ec424522b229575b0a1e9e038027ed47
parentb1bf4878ed84a340f96e44ce926ba4ab9c16e893
cgroup: don't trim cgroup trees created by someone else

In cases when there is a cgroup tree in a controller hierarchy which was
not created by us, but it looks like it was (i.e. cgroup path is the
same as the one in systemd's named hierarchy) we shouldn't delete it.

Origin: http://lists.freedesktop.org/archives/systemd-devel/2014-September/023276.html
Bug-Debian: https://bugs.debian.org/777601

Gbp-Pq: Topic debian
Gbp-Pq: Name cgroup-don-t-trim-cgroup-trees-created-by-someone-el.patch
src/basic/cgroup-util.c
src/core/cgroup.c