[lxc-devel] [lxc/lxc] a3ff97: init: become session leader

GitHub noreply at github.com
Tue Oct 17 05:47:13 UTC 2017


  Branch: refs/heads/stable-2.0
  Home:   https://github.com/lxc/lxc
  Commit: a3ff979b24bc722d76467f2c4791b0da6458d439
      https://github.com/lxc/lxc/commit/a3ff979b24bc722d76467f2c4791b0da6458d439
  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: 17d359be781845f2e610efc0d6068b0e67dadbd0
      https://github.com/lxc/lxc/commit/17d359be781845f2e610efc0d6068b0e67dadbd0
  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: e29179e5919bf33c694614ef99150de46ac8fda5
      https://github.com/lxc/lxc/commit/e29179e5919bf33c694614ef99150de46ac8fda5
  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: de748b7da0b2e074ef6b84e4eca5c785aaee28a1
      https://github.com/lxc/lxc/commit/de748b7da0b2e074ef6b84e4eca5c785aaee28a1
  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/08339db30d5d...de748b7da0b2


More information about the lxc-devel mailing list