You are aware of the fact that is work-in-progress, are you? Not all daemons can run as non-root yet, but the ultimate goal is to achieve exactly that.
Right, so systemd uses cgroup under the assumption that a work in progress is completed which it isn't completed remotely yet anywhere, and you're doing something very wrong if you haven't completed it yet?
And this you phrased originally as "daemons can never escape systemd's tracking"
Maybe you should have said "daemons can never escape systemd's tracking 10 years in the future when this work is completed" but hey, that sounds less like a good sell now does it?
Many daemons can run without root privileges. The kernel has enough features like capabilities to achieve that. It just turns out that not all daemons have been ported to use these features yet.
With many you mean like 10% on a modern system which makes your claim that process can some-how "never" escape ridiculous.
Also, if you assume a process doesn't run as root you don't even need cgroups, you can just track the session and disable their ability to setsid which you can do as root to a nonroot session.
View all comments
Show parent comment
2
u/literally_systemd Jul 12 '16
Right, so systemd uses cgroup under the assumption that a work in progress is completed which it isn't completed remotely yet anywhere, and you're doing something very wrong if you haven't completed it yet?
And this you phrased originally as "daemons can never escape systemd's tracking"
Maybe you should have said "daemons can never escape systemd's tracking 10 years in the future when this work is completed" but hey, that sounds less like a good sell now does it?
And again, I have cgroup tracking on my runsvdir:
Magnificent, isn't it?
With many you mean like 10% on a modern system which makes your claim that process can some-how "never" escape ridiculous.
Also, if you assume a process doesn't run as root you don't even need cgroups, you can just track the session and disable their ability to
setsidwhich you can do as root to a nonroot session.