[lxc-devel] [lxc/lxc] 0bbf85: conf: non-functional changes lxc_fill_autodev()

GitHub noreply at github.com
Wed May 10 05:31:05 UTC 2017


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: 0bbf8572badbc753f2fd8c129d15e1db8136751b
      https://github.com/lxc/lxc/commit/0bbf8572badbc753f2fd8c129d15e1db8136751b
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2017-05-09 (Tue, 09 May 2017)

  Changed paths:
    M src/lxc/conf.c

  Log Message:
  -----------
  conf: non-functional changes lxc_fill_autodev()

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


  Commit: 4d78c48e294f8526c72c11536a207c453c8cd016
      https://github.com/lxc/lxc/commit/4d78c48e294f8526c72c11536a207c453c8cd016
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2017-05-09 (Tue, 09 May 2017)

  Changed paths:
    M src/lxc/conf.c

  Log Message:
  -----------
  conf: remove /dev/console from lxc_fill_autodev()

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


  Commit: 27245ff7280180c1a6719acf138f31cf02f93b6d
      https://github.com/lxc/lxc/commit/27245ff7280180c1a6719acf138f31cf02f93b6d
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2017-05-09 (Tue, 09 May 2017)

  Changed paths:
    M src/lxc/conf.c

  Log Message:
  -----------
  conf: non-functional changes lxc_setup()

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


  Commit: 3d7d929affa6c4ed96fcc62514973aa075f60f34
      https://github.com/lxc/lxc/commit/3d7d929affa6c4ed96fcc62514973aa075f60f34
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2017-05-09 (Tue, 09 May 2017)

  Changed paths:
    M src/lxc/conf.c

  Log Message:
  -----------
  conf: non-functional changes to console functions

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


  Commit: 8b1b121003f63266ff5437eb3925b2a3ef428cdb
      https://github.com/lxc/lxc/commit/8b1b121003f63266ff5437eb3925b2a3ef428cdb
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2017-05-09 (Tue, 09 May 2017)

  Changed paths:
    M src/lxc/conf.c

  Log Message:
  -----------
  conf: improve lxc_setup_dev_console()

In case the user did request a console to be set up unmount any prior
bind-mount for it.

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


  Commit: 2a12fefd8d3475c11c45ca54f4d5261f14127bb6
      https://github.com/lxc/lxc/commit/2a12fefd8d3475c11c45ca54f4d5261f14127bb6
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2017-05-09 (Tue, 09 May 2017)

  Changed paths:
    M src/lxc/conf.c

  Log Message:
  -----------
  conf: lxc_setup_ttydir_console()

In case the user specified

lxc.console = none
lxc.devttydir = bla
lxc.mount.entry = /dev/console dev/console none bind,create=file 0 0

move the mount under /dev/bla/console

If he requested a mknod()ed /dev/console rename it to /dev/bla/console.

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


  Commit: 2c056d383699202b560100f127f9e136e256e4a9
      https://github.com/lxc/lxc/commit/2c056d383699202b560100f127f9e136e256e4a9
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2017-05-09 (Tue, 09 May 2017)

  Changed paths:
    M config/templates/userns.conf.in

  Log Message:
  -----------
  config: remove /dev/console bind mount

The code in conf will bind-mount a /dev/pts/<n> device over a dummy regular
/dev/console file. If users really want /dev/console bind-mount from the host
they can request it explicitly in the containers config file. This change will
have no effect on current LX{C,D} behavior since we (as said above) overmount
the /dev/console bind-mount anyway.

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


  Commit: 6e3bb2890c26ff0ca8a400eb3c0777f07ff76d83
      https://github.com/lxc/lxc/commit/6e3bb2890c26ff0ca8a400eb3c0777f07ff76d83
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2017-05-09 (Tue, 09 May 2017)

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

  Log Message:
  -----------
  doc: document console behavior

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


  Commit: 74251e49bba58feac8b3b84814b8f86348af0b82
      https://github.com/lxc/lxc/commit/74251e49bba58feac8b3b84814b8f86348af0b82
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2017-05-09 (Tue, 09 May 2017)

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

  Log Message:
  -----------
  utils: add lxc_unstack_mountpoint()

lxc_unstack_mountpoint() tries to clear all mountpoints from a given path.
It return the number of successful umounts on success and -errno on error.

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


  Commit: a7ba3c7ff8995c976b9f3107a968208037bc77bc
      https://github.com/lxc/lxc/commit/a7ba3c7ff8995c976b9f3107a968208037bc77bc
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2017-05-09 (Tue, 09 May 2017)

  Changed paths:
    M src/lxc/conf.c

  Log Message:
  -----------
  conf: unstack all mounts atop /dev/console

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


  Commit: 467c7ff31547467429f28975973af7ad05e4e2f2
      https://github.com/lxc/lxc/commit/467c7ff31547467429f28975973af7ad05e4e2f2
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2017-05-10 (Wed, 10 May 2017)

  Changed paths:
    M src/lxc/console.c

  Log Message:
  -----------
  console: fail when we cannot allocate peer tty

There's really no reason not to if it's requested.

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


  Commit: eb09dc4eb77176e1448324dff7bff655170f7a2a
      https://github.com/lxc/lxc/commit/eb09dc4eb77176e1448324dff7bff655170f7a2a
  Author: Serge Hallyn <serge at hallyn.com>
  Date:   2017-05-10 (Wed, 10 May 2017)

  Changed paths:
    M config/templates/userns.conf.in
    M doc/lxc.container.conf.sgml.in
    M src/lxc/conf.c
    M src/lxc/console.c
    M src/lxc/utils.c
    M src/lxc/utils.h

  Log Message:
  -----------
  Merge pull request #1544 from brauner/2017-05-08/harden_console_handling

harden console handling


Compare: https://github.com/lxc/lxc/compare/9fd8b8a785d8...eb09dc4eb771


More information about the lxc-devel mailing list