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>
Sun, 28 Oct 2018 12:02:18 +0000 (12:02 +0000)
commitd36e9851b3c418262c2fb059560fdb9b2dcc1279
treeaa88aee5b6ee6f9e1786fa6b00f6dab7db01df85
parent11fc89f0383fbb385b5ef8ffa51781d2ca00e1b4
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