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)
committerPeter Michael Green <plugwash@raspbian.org>
Thu, 20 Sep 2018 22:47:19 +0000 (23:47 +0100)
commitb736594c905e16a202c0362ac49093e2fe580013
tree13386653bbcdedab1bb79fa99d9c2435be53c72c
parente7a08b05ccd19e631f3f076411f5bc0ff7b6f148
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