]> git.proxmox.com Git - mirror_lxc.git/commit
Revert "rexec: remove needless /proc/cmdline parsing"
authorChristian Brauner <christian.brauner@ubuntu.com>
Thu, 14 Feb 2019 13:37:46 +0000 (14:37 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Thu, 14 Feb 2019 13:37:46 +0000 (14:37 +0100)
commit7a80606d7b3e31516d3cb223c899be25e67cbc0d
tree2da181557dcce9523ad1391cc085b3d28bee32d0
parent257e396bed4da40af23120c8717d3294511141fd
Revert "rexec: remove needless /proc/cmdline parsing"

The ELF binary spec does specify in [1]:

SHT_INIT_ARRAY
This section contains an array of pointers to initialization functions,
as described in ``Initialization and Termination Functions'' in Chapter
5. Each pointer in the array is taken as a parameterless procedure with
a void return.

which means libcs other than glibc might not pass down argc and argv to
constructors.

This reverts commit 0c816b346788afa9d601766e31544fdcce67d780.

[1]: http://www.sco.com/developers/gabi/latest/ch4.sheader.html#init_array

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/rexec.c
src/lxc/rexec.h
src/lxc/tools/lxc_attach.c