A "kill" button for control groups
A "kill" button for control groups
Posted May 3, 2021 23:52 UTC (Mon) by Cyberax (✭ supporter ✭, #52523)In reply to: A "kill" button for control groups by zblaxell
Parent article: A "kill" button for control groups
Personally, I would prefer a reliable handle-based API for processes instead of trying to plug leaks in a dam with fingers.
Posted May 4, 2021 22:07 UTC (Tue)
by zblaxell (subscriber, #26385)
[Link] (1 responses)
Rights can be delegated. That's one of the central features of cgroups: you don't need to be root to use it.
A process can move around within its delegation hierarchy and evade a (naive, non-looping) userspace terminator--that was part of what made looping (and possibly also recursive search) in userspace necessary. Processes can hold the controller FD's open so they can give themselves their rights back even if the control files are chmod-ed. Also probably a hundred other holes I haven't bothered to think about, and with this patch set, no longer have to.
Posted May 4, 2021 22:46 UTC (Tue)
by Cyberax (✭ supporter ✭, #52523)
[Link]
A "kill" button for control groups
A "kill" button for control groups