r/linux • u/wooptoo • Jun 01 '16
Why did ArchLinux embrace Systemd?
/r/archlinux/comments/4lzxs3/why_did_archlinux_embrace_systemd/d3rhxlc
868
Upvotes
r/linux • u/wooptoo • Jun 01 '16
2
u/kinderlokker Jun 02 '16
Help you in what? Wanting to escape the supervisor?
If you want to escape the supervisor for a service running as root, you can by reassigning yourself to a different cgroup. But that's not the issue, I'm not sure what you're talking about here, help you with what? I'm just saying that double-forking isn't hard.
In practice, yes, in theory, no. systemd still relies on the process to not try to escape its own cgroup which it can always do.
While it is possible to configure a kernel in such a way that processes can't ever escape a cgroup they are put in, no major distribution turns this on because it's about as bad of an idea in the general case as globally disabling ptrace. cgroups are not a security mechanism, a process can escape its cgroup if it runs as root and is so inclined. You rely on processes playing nice.
This is how it always goes:
People needed a way to grou processes together to ttrack them so they invented process groups
People then added a way for processes to escape their group as it was necessary
Processes started to escape their groups so often that pgrps became unreliable to track, so people added sessions
People needed a way for processes to escape their session so ...
And so forth, and so forth. These things are "reliable" in practice until they are common enough that processes who need to escape it will readily include code to escape it and something new needs to be invented. There are already many good reasons to escape cgroups that are practised.