cgroups: try /sys/fs/cgroup/cpuset first

With newer systemd systems, /sys/fs/cgroup/ is read-only, so we have
to create our subgroups under existing points.

In case the paths are symlinks, make sure we fully resolve the mount
point so that when we walk the mounted list, we can correctly find it.

BUG=chromium:441992
TEST=None

Change-Id: Ida26f6decdd075cb14669beb499d621ca92c53e6
(cherry picked from commit bafdb8fc52d12d88d4b2e51a696f1566827277e7)
Reviewed-on: https://chromium-review.googlesource.com/1139519
Tested-by: Mike Frysinger <vapier@chromium.org>
Reviewed-by: Mike Frysinger <vapier@chromium.org>
1 file changed