[lxc-devel] [lxc/lxc] 4cd7c7: cgroups/cgfsng: adapt to new cgroup2 delegation

GitHub noreply at github.com
Sat Nov 11 10:13:59 UTC 2017


  Branch: refs/heads/stable-2.1
  Home:   https://github.com/lxc/lxc
  Commit: 4cd7c764f6fe2611b65779c1236f86c6c4e9f80a
      https://github.com/lxc/lxc/commit/4cd7c764f6fe2611b65779c1236f86c6c4e9f80a
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2017-11-11 (Sat, 11 Nov 2017)

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

  Log Message:
  -----------
  cgroups/cgfsng: adapt to new cgroup2 delegation

In order to enable proper unprivileged cgroup delegation on newer kernels we not
just need to delegate the "cgroup.procs" file but also "cgroup.threads". But
don't report an error in case it doesn't exist. Also delegate
"cgroup.subtree_control" to enable delegation of controllers to descendant
cgroups.

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


  Commit: 7982b83356527b0eb20dca7c972fe2a50fd1c0fa
      https://github.com/lxc/lxc/commit/7982b83356527b0eb20dca7c972fe2a50fd1c0fa
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2017-11-11 (Sat, 11 Nov 2017)

  Changed paths:
    M src/lxc/console.c

  Log Message:
  -----------
  console: report detach message on demand

When users pass -1 there's there won't be an escape sequence to exit the
console so no need to print a misleading info message about how to detach.

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


  Commit: 0147416a2b8637ede0fc3d2f74a3adf1f6e78b2d
      https://github.com/lxc/lxc/commit/0147416a2b8637ede0fc3d2f74a3adf1f6e78b2d
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2017-11-11 (Sat, 11 Nov 2017)

  Changed paths:
    M src/lxc/lxccontainer.c

  Log Message:
  -----------
  lxccontainer: enable daemonized app containers

This enables daemonized application containers with our minimal init running as
pid one and the requested program running as second pid.

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


Compare: https://github.com/lxc/lxc/compare/87d372a51da0...0147416a2b86


More information about the lxc-devel mailing list