]> git.ipfire.org Git - thirdparty/systemd.git/commit
test: add testcase that verifies we can safely delete subcgroups owned by other users... 35922/head
authorLennart Poettering <lennart@poettering.net>
Wed, 8 Jan 2025 12:55:07 +0000 (13:55 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 8 Jan 2025 14:27:25 +0000 (15:27 +0100)
commit1d5fd2e6211502fc48d5df425dd067c6b368dab3
tree013bc8650cc0cdab67d48a82b620a171e2400cd3
parent51a70c887570121588cbdf7cdf97ac4cec4f5bda
test: add testcase that verifies we can safely delete subcgroups owned by other users if we own the parent

This is a test for the previous commits: we create an unpriv, delegated cgroup in
--user mode, then create a subcgroup that is owned by some other user
(to mimic the case where an unpriv user got a userns with delegated UIDs
assigned), and then try to stop the unit. traditionally this would fail,
because our unpriv systemd --user instance can't remove the subcrroup
owned by someone else. With the earlier patches this is addressed.
test/units/TEST-19-CGROUP.delegate.sh