[lxc-devel] [lxc/lxc] 7696c1: Introduce lxc.cgroup.dir.monitor.pivot

Christian Brauner noreply at github.com
Tue Oct 27 16:45:18 UTC 2020


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: 7696c1f9d1aed98a54bf7acd4c48799c395cdc64
      https://github.com/lxc/lxc/commit/7696c1f9d1aed98a54bf7acd4c48799c395cdc64
  Author: Ruben Jenster <r.jenster at drachenfels.de>
  Date:   2020-10-27 (Tue, 27 Oct 2020)

  Changed paths:
    M doc/lxc.container.conf.sgml.in
    M src/lxc/cgroups/cgfsng.c
    M src/lxc/conf.h
    M src/lxc/confile.c

  Log Message:
  -----------
  Introduce lxc.cgroup.dir.monitor.pivot

On termination lxc may fail to remove either lxc.cgroup.dir or lxc.cgroup.dir.monitor,
because the monitor process may still be a member of either of these cgroups.
The pivot cgroup should not be a member (subpath) of any other container cgroup (dir).
because only empty cgroups can be removed.

Signed-off-by: Ruben Jenster <r.jenster at drachenfels.de>


  Commit: a093bb0f5c3d61d3d098ddeea9722a135b95a36e
      https://github.com/lxc/lxc/commit/a093bb0f5c3d61d3d098ddeea9722a135b95a36e
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2020-10-27 (Tue, 27 Oct 2020)

  Changed paths:
    M doc/lxc.container.conf.sgml.in
    M src/lxc/cgroups/cgfsng.c
    M src/lxc/conf.h
    M src/lxc/confile.c

  Log Message:
  -----------
  Merge pull request #3563 from Drachenfels-GmbH/cgroup-fixes

cgroups: Introduce lxc.cgroup.dir.monitor.pivot - fixes cgroup removal on termination


Compare: https://github.com/lxc/lxc/compare/5fd31e375f52...a093bb0f5c3d


More information about the lxc-devel mailing list