[FFe] Add cgmanager support
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
systemd (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I'd like to add cgmanager support to systemd-logind so that in environment where it doesn't have direct access to the cgroup hierarchy (most notably unprivileged LXC containers), it'll be able to use cgmanager to perform all the operations it needs.
This is implemented through a patch directly against our current version of systemd, this isn't upstreamable code as it's a bit hackish and current upstream systemd has now switched logind to using the systemd cgroup API rather than performing direct accesses.
The change in question is available at: https:/
This has been reviewd by Serge Hallyn (author of cgmanager) and Martin Pitt and tested quite a bit here, so I'm pretty confident this will work as intended.
For systems that do not ship cgmanager (currently everyone but those using LXC), logind will use the old code path without any change whatsoever, for those with cgmanager installed (detected by the presence of /sys/fs/
I'm sorry for the late FFe, but this was stuck on the security team processing the MIR of cgmanager which took a couple of months... It finally got accepted earlier this week and I'm planning to upload LXC 1.0.2 later this week which will pull it into main, then followed shortly by systemd should this FFe be approved.
Landing would happen right after Beta 2 is out.
Related branches
Changed in systemd (Ubuntu): | |
status: | Invalid → Confirmed |
FFe approved.