Skip to content
  • Lennart Poettering's avatar
    cgroup: make sure all our cgroup objects have a suffix and are properly escaped · ae018d9b
    Lennart Poettering authored
    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.
    ae018d9b