[lxc-devel] [PATCH 1/1] cgmanager: use absolute cgroup path to switch cgroups at attach

S.Çağlar Onur caglar at 10ur.org
Fri May 2 21:39:47 UTC 2014


On Fri, May 2, 2014 at 4:26 PM, Serge Hallyn <serge.hallyn at ubuntu.com> wrote:
> Quoting S.Çağlar Onur (caglar at 10ur.org):
>> On Fri, May 2, 2014 at 12:14 PM, Serge Hallyn <serge.hallyn at ubuntu.com> wrote:
>> > Quoting Serge Hallyn (serge.hallyn at ubuntu.com):
>> >> If an unprivileged user does 'lxc-start -n u1' in one
>> >> login session, followed by 'lxc-attach -n u1' in another
>> >> session, the attach will fail if the sessions are in different
>> >> cgroups.  The same is true of lxc-cgroup commands.
>> >>
>> >> Address this by using the GetPidCgroupAbs and MovePidAbs
>> >> which work with the containers' cgroup path relative to
>> >> the cgproxy.
>> >>
>> >> Since GetPidCgroupAbs is new to api version 3 in cgmanager,
>> >> use the old method if we are on an older cgmanager.
>> >>
>> > I should have added a
>> >
>> > Reported-by: "S.Çağlar Onur" <caglar at 10ur.org>
>>
>> :) I would love to add Tested-by as well and for that I also need
>> latest cgmanager right?
>
> Yeah, and you have to have the new libcgmanager-dev installed before
> bulding lxc so configure can find the new cgmanager function.
>
> utopic does have the new cgmanager, so you can upgrade a vm to
> that then build lxc in there.

Tested-by:  "S.Çağlar Onur" <caglar at 10ur.org>

-- 
S.Çağlar Onur <caglar at 10ur.org>


More information about the lxc-devel mailing list