[lxc-devel] [lxc/lxc] 79d5bc: init: become session leader

GitHub noreply at github.com
Tue Oct 17 05:45:30 UTC 2017


  Branch: refs/heads/stable-2.1
  Home:   https://github.com/lxc/lxc
  Commit: 79d5bcf1635b872eb0dec5cdc3ac31f1f2337885
      https://github.com/lxc/lxc/commit/79d5bcf1635b872eb0dec5cdc3ac31f1f2337885
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2017-10-17 (Tue, 17 Oct 2017)

  Changed paths:
    M src/lxc/tools/lxc_init.c

  Log Message:
  -----------
  init: become session leader

Before exec()ing we need to become session leader otherwise some shells will
not be able to correctly initialize job control.

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


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

  Changed paths:
    M src/lxc/Makefile.am
    M src/lxc/execute.c
    M src/lxc/initutils.c
    M src/lxc/initutils.h
    M src/lxc/lxccontainer.c
    M src/lxc/tools/lxc_init.c
    M src/lxc/utils.c
    M src/lxc/utils.h

  Log Message:
  -----------
  init: rework dumb init

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


  Commit: 85d104780a16360e976c777dd84a84b48cff4c87
      https://github.com/lxc/lxc/commit/85d104780a16360e976c777dd84a84b48cff4c87
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2017-10-17 (Tue, 17 Oct 2017)

  Changed paths:
    M src/lxc/arguments.c

  Log Message:
  -----------
  arguments: print "-devel" when LXC_DEVEL is true

liblxc should inform users that they are using a devel version. This will have
liblxc print

    MAJOR.MINOR.PATCH-devel

if LXC_DEVEL is true and

    MAJOR.MINOR.PATCH

otherwise.

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


  Commit: 3eddc004f10ce69210d02fa6b031c0a6dfe4fc17
      https://github.com/lxc/lxc/commit/3eddc004f10ce69210d02fa6b031c0a6dfe4fc17
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2017-10-17 (Tue, 17 Oct 2017)

  Changed paths:
    M src/lxc/log.c

  Log Message:
  -----------
  log: prevent stack smashing

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


  Commit: 49eb81b12a1dc076e5b275cf697075aa42f6b088
      https://github.com/lxc/lxc/commit/49eb81b12a1dc076e5b275cf697075aa42f6b088
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2017-10-17 (Tue, 17 Oct 2017)

  Changed paths:
    M src/lxc/conf.c

  Log Message:
  -----------
  conf: error out on too many mappings

The kernel only allows 4k writes to most files in /proc including {g,u}id_map
so let's not try to write partial mappings. (This will obviously become a lot
more relevant when my patch to extend the idmap limit in the kernel is merged.)

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


Compare: https://github.com/lxc/lxc/compare/25af2ac7f3aa...49eb81b12a1d


More information about the lxc-devel mailing list