[lxc-devel] [lxc/lxc] 5d9dd3: cgmanager: fix 'attach' with "all" controller supp...

GitHub noreply at github.com
Sun Nov 2 21:59:40 UTC 2014


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: 5d9dd3d8f72cbcf67c5d375a83a4ed4372932a11
      https://github.com/lxc/lxc/commit/5d9dd3d8f72cbcf67c5d375a83a4ed4372932a11
  Author: Serge Hallyn <serge.hallyn at ubuntu.com>
  Date:   2014-11-02 (Sun, 02 Nov 2014)

  Changed paths:
    M src/lxc/cgmanager.c

  Log Message:
  -----------
  cgmanager: fix 'attach' with "all" controller support

"all" is not a supported keyword for cgmanager's get_pid_cgroup.
Pass the first mounted cgroup subsystem instead of passing "all" when
getting the container's cgorup to attach to.

Also, make sure that the target cgroup is in fact in all identical
cgroups before attaching with 'all".  If not, then we must attach to
each cgroup separately, or else we will not be in all the same cgroups
as the target container.

Signed-off-by: Serge Hallyn <serge.hallyn at ubuntu.com>
Acked-by: Stéphane Graber <stgraber at ubuntu.com>




More information about the lxc-devel mailing list