[lxc-devel] [lxc/lxc] 8b5fb7: detect which cgroups we cannot use

GitHub noreply at github.com
Fri Jan 8 21:05:44 UTC 2016


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: 8b5fb7f3d8ff0c93f11b935b92e737305f98680d
      https://github.com/lxc/lxc/commit/8b5fb7f3d8ff0c93f11b935b92e737305f98680d
  Author: Serge Hallyn <serge.hallyn at ubuntu.com>
  Date:   2016-01-08 (Fri, 08 Jan 2016)

  Changed paths:
    M src/lxc/cgmanager.c

  Log Message:
  -----------
  detect which cgroups we cannot use

and continue without them if possible.  This allows an unpriv user
who only has a few cgroups he owns to still use lxc.

This patch only handles cgmanger - we need to handle this in cgfs too.

Signed-off-by: Serge Hallyn <serge.hallyn at ubuntu.com>


  Commit: 12983ba4581e73f18087b2bd471c2d0b8d581a66
      https://github.com/lxc/lxc/commit/12983ba4581e73f18087b2bd471c2d0b8d581a66
  Author: Serge Hallyn <serge.hallyn at ubuntu.com>
  Date:   2016-01-08 (Fri, 08 Jan 2016)

  Changed paths:
    M src/lxc/namespace.h
    M src/lxc/start.c
    M src/lxc/utils.c
    M src/lxc/utils.h

  Log Message:
  -----------
  container start: unshare cgns when possible

We'll probably want to make this configurable with a
lxc.cgroupns = [1|0], but for now just always do it.

Signed-off-by: Serge Hallyn <serge.hallyn at ubuntu.com>

---
Changelog 20160104: only try to unshare if /proc/self/ns/cgroup exists.


  Commit: 6cee93ac80c10ac664cedce1d3ff4a7e43516ec9
      https://github.com/lxc/lxc/commit/6cee93ac80c10ac664cedce1d3ff4a7e43516ec9
  Author: Serge Hallyn <serge.hallyn at ubuntu.com>
  Date:   2016-01-08 (Fri, 08 Jan 2016)

  Changed paths:
    M src/lxc/attach.c

  Log Message:
  -----------
  attach: unshare cgroupns if possible

Signed-off-by: Serge Hallyn <serge.hallyn at ubuntu.com>
---
Changelog 20160104: only try if kernel supports cgns.


  Commit: c4cafa080c8beb9a34a1fecff9331d84385f6440
      https://github.com/lxc/lxc/commit/c4cafa080c8beb9a34a1fecff9331d84385f6440
  Author: Serge Hallyn <serge.hallyn at ubuntu.com>
  Date:   2016-01-08 (Fri, 08 Jan 2016)

  Changed paths:
    M doc/lxc.container.conf.sgml.in
    M src/lxc/start.c

  Log Message:
  -----------
  add LXC_CGNS_AWARE env variable for mount hooks

This way the lxcfs mount hook can know whether lxc knows about
cgroup namespaces.

Signed-off-by: Serge Hallyn <serge.hallyn at ubuntu.com>


  Commit: c7ec3de8256c848063ffa93476f8d2d873c4c4ad
      https://github.com/lxc/lxc/commit/c7ec3de8256c848063ffa93476f8d2d873c4c4ad
  Author: Serge Hallyn <serge at hallyn.com>
  Date:   2016-01-08 (Fri, 08 Jan 2016)

  Changed paths:
    M doc/lxc.container.conf.sgml.in
    M src/lxc/attach.c
    M src/lxc/cgmanager.c
    M src/lxc/namespace.h
    M src/lxc/start.c
    M src/lxc/utils.c
    M src/lxc/utils.h

  Log Message:
  -----------
  Merge pull request #752 from hallyn/2016-01-04/cgroup.use

2016 01 04/cgroup.use


Compare: https://github.com/lxc/lxc/compare/919a04ed2366...c7ec3de8256c


More information about the lxc-devel mailing list