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

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


  Branch: refs/heads/stable-2.0
  Home:   https://github.com/lxc/lxc
  Commit: b296ccccaf8e970f2a82eef57b0097b73c7473ad
      https://github.com/lxc/lxc/commit/b296ccccaf8e970f2a82eef57b0097b73c7473ad
  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: 9873ed36a7086ab48256bf845fbd3e1734a7723c
      https://github.com/lxc/lxc/commit/9873ed36a7086ab48256bf845fbd3e1734a7723c
  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: acd8bbfba4877f0fa1da57132c5b6630ffd1b376
      https://github.com/lxc/lxc/commit/acd8bbfba4877f0fa1da57132c5b6630ffd1b376
  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/1ce9ea5bd6cc...acd8bbfba487


More information about the lxc-devel mailing list