]> git.ipfire.org Git - thirdparty/systemd.git/commit
cgroups-show: validate specified hostname before including it in fs path
authorLennart Poettering <lennart@poettering.net>
Wed, 6 Oct 2021 15:04:16 +0000 (17:04 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 7 Oct 2021 09:49:57 +0000 (11:49 +0200)
commit40d4320deae38db40e0c728cd07b0d7c1bb95606
treefd26a90dd4b92d7c71ef7d8d51ebcdaa8d36180c
parenta5edf95ec2e38c01abbc237ca4c906f102c224d8
cgroups-show: validate specified hostname before including it in fs path

let's make sure the specified hostname is really valid before we build
an fs path from it. Just as a safety future, so that people can't trick
us with hostnames including "/../" or so.
src/shared/cgroup-show.c