[lxc-devel] [lxc/lxc] cdfe90: cgfsng: fix cgroup2 detection

GitHub noreply at github.com
Mon Oct 30 15:30:18 UTC 2017


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: cdfe90a49f516b0f1210d181980f14a4765e10da
      https://github.com/lxc/lxc/commit/cdfe90a49f516b0f1210d181980f14a4765e10da
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2017-10-30 (Mon, 30 Oct 2017)

  Changed paths:
    M src/lxc/cgroups/cgfsng.c

  Log Message:
  -----------
  cgfsng: fix cgroup2 detection

Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>


  Commit: b635e92d21d2a4d71a553388f18cfa08f44bf1ba
      https://github.com/lxc/lxc/commit/b635e92d21d2a4d71a553388f18cfa08f44bf1ba
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2017-10-30 (Mon, 30 Oct 2017)

  Changed paths:
    M src/lxc/cgroups/cgfs.c
    M src/lxc/cgroups/cgfsng.c
    M src/lxc/cgroups/cgroup.c
    M src/lxc/conf.c
    M src/lxc/conf.h

  Log Message:
  -----------
  cgroups: enable container without CAP_SYS_ADMIN

In case cgroup namespaces are supported but we do not have CAP_SYS_ADMIN we
need to mount cgroups for the container. This patch enables both privileged and
unprivileged containers without CAP_SYS_ADMIN.

Closes #1737.

Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>


  Commit: af949cc1938ff3a4e06148867a64d7715ce89a50
      https://github.com/lxc/lxc/commit/af949cc1938ff3a4e06148867a64d7715ce89a50
  Author: Serge Hallyn <serge at hallyn.com>
  Date:   2017-10-30 (Mon, 30 Oct 2017)

  Changed paths:
    M src/lxc/cgroups/cgfs.c
    M src/lxc/cgroups/cgfsng.c
    M src/lxc/cgroups/cgroup.c
    M src/lxc/conf.c
    M src/lxc/conf.h

  Log Message:
  -----------
  Merge pull request #1888 from brauner/2017-10-30/enable_cgfsng_cgroup_mounting

cgroups: enable container without CAP_SYS_ADMIN


Compare: https://github.com/lxc/lxc/compare/cf13d1078120...af949cc1938f


More information about the lxc-devel mailing list