mirror of
https://github.com/clearlinux/rkt.git
synced 2026-08-19 13:36:39 +00:00
e26d71a880
SliceToPath explodes a slice name to its corresponding path in the cgroup hierarchy. For example, a slice named "foo-bar-baz.slice" corresponds to the path "foo.slice/foo-bar.slice/foo-bar-baz.slice". See systemd.slice(5) Since SliceToPath needs to do escapings and sanity checks, several functions used in systemd for that purpose are also ported.