]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/test/test-cgroup-util.c
cgroup: make sure all our cgroup objects have a suffix and are properly escaped
authorLennart Poettering <lennart@poettering.net>
Tue, 23 Apr 2013 02:10:13 +0000 (23:10 -0300)
committerLennart Poettering <lennart@poettering.net>
Tue, 23 Apr 2013 02:14:12 +0000 (23:14 -0300)
commitae018d9bc900d6355dea4af05119b49c67945184
tree07a311ae16ac331f1044503bbb01a4e111331fb2
parentcd8f53ab1601513cc3407447bfe3359ee7139676
cgroup: make sure all our cgroup objects have a suffix and are properly escaped

Session objects will now get the .session suffix, user objects the .user
suffix, nspawn containers the .nspawn suffix.

This also changes the user cgroups to be named after the numeric UID
rather than the username, since this allows us the parse these paths
standalone without requiring access to the cgroup file system.

This also changes the mapping of instanced units to cgroups. Instead of
mapping foo@bar.service to the cgroup path /user/foo@.service/bar we
will now map it to /user/foo@.service/foo@bar.service, in order to
ensure that all our objects are properly suffixed in the tree.
TODO
src/core/unit.c
src/journal/journald-server.c
src/login/logind-session.c
src/login/logind-user.c
src/login/sd-login.c
src/nspawn/nspawn.c
src/shared/cgroup-util.c
src/shared/cgroup-util.h
src/test/test-cgroup-util.c