[Bug 1297363] Re: [FFe] Add cgmanager support
Steve Langasek
steve.langasek at canonical.com
Fri Mar 28 16:48:14 UTC 2014
FFe approved.
** Changed in: systemd (Ubuntu)
Status: New => Invalid
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/1297363
Title:
[FFe] Add cgmanager support
Status in “systemd” package in Ubuntu:
Invalid
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://code.launchpad.net/~stgraber/ubuntu/trusty/systemd/logind-cgmanager/+merge/211649
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/cgroup/cgmanager/sock), logind will attempt to connect to it and use it. If the connection fails, it'll fallback to using the filesystem directly.
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.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1297363/+subscriptions
More information about the foundations-bugs
mailing list