]> git.ipfire.org Git - thirdparty/systemd.git/commit
cgls: show delegation boundaries by underlining the cgroup in the output
authorLennart Poettering <lennart@poettering.net>
Wed, 20 Nov 2019 16:43:09 +0000 (17:43 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 20 Nov 2019 16:50:12 +0000 (17:50 +0100)
commit74d8ccd451a975b27263226c877b7d3998c62c12
tree417a40d3e37cb206d71338fada574e588ce6723c
parent3288ea8f32e6f4742c5ce5ffa260252f7da959cf
cgls: show delegation boundaries by underlining the cgroup in the output

This should help visualize where one manager's territory begins and
another's starts. Do this by underlining (since it's a "cut" point an
underline made most sense to me). Since underlining is not visible on
the console let's also show an ellipses for all lines that are
delegation boundaries.

Unfortunately this all is not as useful as it appears. The
"trusted.delegate" xattr is only visible to roo, which means
"systemd-cgls" has be called as root to show the boundaries.
Unfortunately cgroupfs doesn't support unprivileged xattrs on cgroups.
src/shared/cgroup-show.c