[lxc-devel] [lxc/lxc] 8158c0: lxc-start-ephemeral: Use attach

GitHub noreply at github.com
Thu Feb 13 19:14:18 UTC 2014


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: 8158c057dc25a50d2918e6dccf9d348e1dd5da22
      https://github.com/lxc/lxc/commit/8158c057dc25a50d2918e6dccf9d348e1dd5da22
  Author: Stéphane Graber <stgraber at ubuntu.com>
  Date:   2014-02-13 (Thu, 13 Feb 2014)

  Changed paths:
    M src/lxc/lxc-start-ephemeral.in

  Log Message:
  -----------
  lxc-start-ephemeral: Use attach

With this change, systems that support it will use attach to run any
provided command.

This doesn't change the default behaviour of attaching to tty1, but it
does make it much easier to script or even get a quick shell with:
lxc-start-ephemeral -o p1 -n p2 -- /bin/bash

I'm doing the setgid,initgroups,setuid,setenv magic in python rather
than using the attach_wait parameters as I need access to the pwd module
in the target namespace to grab the required information.

Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn at ubuntu.com>


  Commit: c756a6e91b6d6da2ff8a21b5a4ece26b05b99283
      https://github.com/lxc/lxc/commit/c756a6e91b6d6da2ff8a21b5a4ece26b05b99283
  Author: Stéphane Graber <stgraber at ubuntu.com>
  Date:   2014-02-13 (Thu, 13 Feb 2014)

  Changed paths:
    M src/lxc/lxc-device
    M src/lxc/lxc-ls
    M src/lxc/lxc-start-ephemeral.in
    M src/python-lxc/examples/api_test.py
    M src/python-lxc/examples/pyconsole-vte.py
    M src/python-lxc/examples/pyconsole.py
    M src/python-lxc/lxc/__init__.py

  Log Message:
  -----------
  python3: Drop API warning and fix pep8/pyflakes3

Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn at ubuntu.com>


  Commit: cd063f4524ce16ad3de1820780f1b5763de43f5d
      https://github.com/lxc/lxc/commit/cd063f4524ce16ad3de1820780f1b5763de43f5d
  Author: Stéphane Graber <stgraber at ubuntu.com>
  Date:   2014-02-13 (Thu, 13 Feb 2014)

  Changed paths:
    M src/python-lxc/examples/api_test.py

  Log Message:
  -----------
  python3: Update apitest

This update will make it work unprivileged as well as testing a few of
the new functions.

Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn at ubuntu.com>


Compare: https://github.com/lxc/lxc/compare/5693029730ee...cd063f4524ce


More information about the lxc-devel mailing list