]> git.proxmox.com Git - mirror_lxc.git/commit - src/lxc/Makefile.am
lxc: enter / exec a command inside a container V2
authorDaniel Lezcano <dlezcano@fr.ibm.com>
Mon, 22 Mar 2010 10:08:34 +0000 (11:08 +0100)
committerDaniel Lezcano <dlezcano@fr.ibm.com>
Mon, 22 Mar 2010 10:08:34 +0000 (11:08 +0100)
commit81c75799cc753a51afb6e17979b2923212986ad3
tree939bb5bd0f24186ff0f599672994a463ddeae78e
parent28a4b0e55c659428bc8f495fde2e774fbd0fb03c
lxc: enter / exec a command inside a container V2

This patch allows to execute a command or enter inside the container:
  * lxc-attach -n <name> [command]

If the <command is not specified>, the lxc-attach will retrieve your uid
and get your shell name and exec it in the container.

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
src/lxc/Makefile.am
src/lxc/commands.c
src/lxc/commands.h
src/lxc/lxc-setcap.in
src/lxc/lxc_attach.c [new file with mode: 0644]
src/lxc/namespace.c
src/lxc/namespace.h
src/lxc/start.c