]> git.ipfire.org Git - thirdparty/systemd.git/commit
cgroup-util: do not check validity of controller in cg_split_spec()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 30 Aug 2025 13:25:22 +0000 (22:25 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 17 Nov 2025 12:31:51 +0000 (21:31 +0900)
commitb9e612e070fd766c63b933c2a17c49b053c16111
tree0f2131225e4848649e26aa2cdb9bccdbb638314f
parent6a8ab5f062ca8ee81fbfe6e89c67b789852e9dff
cgroup-util: do not check validity of controller in cg_split_spec()

Now the controller part is always ignored, hence let's skip check for
the controller part of the spec. This also make it acceppt unnormalized
path. Previously paths were checked by path_is_normalized(), but now
checked by path_is_safe(). Also, now this mapps an empty path to NULL.
src/basic/cgroup-util.c
src/basic/cgroup-util.h
src/test/test-cgroup-util.c