- 12 Oct, 2009 3 commits
-
-
Daniel Lezcano authored
Fix the missing network prefix. When no network prefix is specified, the prefix is computed from the network class specified. Signed-off-by:Daniel Lezcano <dlezcano@fr.ibm.com>
-
Daniel Lezcano authored
Fix test program compilation errors. Signed-off-by:Daniel Lezcano <dlezcano@fr.ibm.com>
-
Daniel Lezcano authored
Remove the old configuration remaining code. Signed-off-by:Daniel Lezcano <dlezcano@fr.ibm.com>
-
- 09 Oct, 2009 18 commits
-
-
Daniel Lezcano authored
tty_create uses the old conf directory, fixing this. Signed-off-by:Daniel Lezcano <dlezcano@fr.ibm.com>
-
Daniel Lezcano authored
The netdev vs network structure is not well defined. Fix that. Signed-off-by:Daniel Lezcano <dlezcano@fr.ibm.com>
-
Daniel Lezcano authored
We can factor out the "ip addr add" Signed-off-by:Daniel Lezcano <dlezcano@fr.ibm.com>
-
Daniel Lezcano authored
We don't want to use anymore the configuration directory, let's use the configuration structure. Signed-off-by:Daniel Lezcano <dlezcano@fr.ibm.com>
-
Daniel Lezcano authored
Move configuration informations from the handler structure to the configuration structure. Signed-off-by:Daniel Lezcano <dlezcano@fr.ibm.com>
-
Daniel Lezcano authored
We want to store more information in the configuration structure, especially the ttys. Signed-off-by:Daniel Lezcano <dlezcano@fr.ibm.com>
-
Daniel Lezcano authored
Do not use the directory configuration Signed-off-by:Daniel Lezcano <dlezcano@fr.ibm.com>
-
Michel Normand authored
There is no more need of this file so remove it. Signed-off-by:
Michel Normand <normand@fr.ibm.com> Signed-off-by:
Daniel Lezcano <dlezcano@fr.ibm.com>
-
Michel Normand authored
to avoid to use the LXCPATH/<name>/nsgroup Signed-off-by:
Michel Normand <normand@fr.ibm.com> Signed-off-by:
Daniel Lezcano <dlezcano@fr.ibm.com>
-
Michel Normand authored
remove the usage of LXCPATH/<name>/nsgroup in get/set function. Signed-off-by:
Michel Normand <normand@fr.ibm.com> Signed-off-by:
Daniel Lezcano <dlezcano@fr.ibm.com>
-
Michel Normand authored
this also avoid to call two times get_cgroup_mount Signed-off-by:
Michel Normand <normand@fr.ibm.com> Signed-off-by:
Daniel Lezcano <dlezcano@fr.ibm.com>
-
Daniel Lezcano authored
Do not use the directory configuration Signed-off-by:Daniel Lezcano <dlezcano@fr.ibm.com>
-
Daniel Lezcano authored
Do not use the directory configuration for the mount points. Signed-off-by:Daniel Lezcano <dlezcano@fr.ibm.com>
-
Daniel Lezcano authored
Avoid to use the directory structure. Signed-off-by:Daniel Lezcano <dlezcano@fr.ibm.com>
-
Daniel Lezcano authored
Use the configuration structure, not the directory configuration Signed-off-by:Daniel Lezcano <dlezcano@fr.ibm.com>
-
Daniel Lezcano authored
use the configuration structure for setting up the rootfs Signed-off-by:Daniel Lezcano <dlezcano@fr.ibm.com>
-
Daniel Lezcano authored
Remove the usage of the directory config for the setup and use the configuration structure instead. Signed-off-by:Daniel Lezcano <dlezcano@fr.ibm.com>
-
Daniel Lezcano authored
This patch makes the configuration to read the configuration file in order to pass the configuration to the different functions. Signed-off-by:Daniel Lezcano <dlezcano@fr.ibm.com>
-
- 07 Oct, 2009 19 commits
-
-
Daniel Lezcano authored
When the parent of the first process dies, the container stays there making very difficuly to track it and to kill. We have to use the lxc-ps --lxc and kill the processes, hoping we kill the init process of the container. That's not a big deal until we have thousand of processes in the container :) We want to keep the parent of the container init always there, this process is responsible to manage the container, provide tty, notify the container changing states and ensure self exclusion (eg. avoid to launch several containers with the same name). If this process dies, we consider that as a fatal error and we make the child process to die too. This patch will just add the prctl to to send a SIGKILL to the container init process when its parent exits For the point of view of the pid namespace, when the init process dies all the processes of the namespace are killed too. Signed-off-by:Daniel Lezcano <dlezcano@fr.ibm.com>
-
Daniel Lezcano authored
The number of fds passed to epoll is just a hint for the kernel. In our case, we know this is often 2, let's remove this parameter from lxc_mainloop_open and cleanup the code around the caller of this function. Signed-off-by:Daniel Lezcano <dlezcano@fr.ibm.com>
-
Daniel Lezcano authored
Indent and make the code cleaner. Signed-off-by:Daniel Lezcano <dlezcano@fr.ibm.com>
-
Michel Normand authored
This code is not used in lxc. Signed-off-by:
Michel Normand <normand@fr.ibm.com> Signed-off-by:
Daniel Lezcano <dlezcano@fr.ibm.com>
-
Michel Normand authored
this was useless since old commit 576f946d that intoduced the cgroup support. Signed-off-by:
Michel Normand <normand@fr.ibm.com> Signed-off-by:
Daniel Lezcano <dlezcano@fr.ibm.com>
-
Daniel Lezcano authored
When a command can not be send because the connection is refused, that means the container is stopped. Let's report this specific case instead of raising an error. Signed-off-by:
Daniel Lezcano <dlezcano@fr.ibm.com> Signed-off-by:
Michel Normand <normand@fr.ibm.com>
-
Daniel Lezcano authored
Remove old dead code. Signed-off-by:Daniel Lezcano <dlezcano@fr.ibm.com>
-
Daniel Lezcano authored
Let's use a more sexy name Signed-off-by:Daniel Lezcano <dlezcano@fr.ibm.com>
-
Daniel Lezcano authored
handle the state command. Signed-off-by:Daniel Lezcano <dlezcano@fr.ibm.com>
-
Daniel Lezcano authored
Like the pid, let's store the state in the handler and modify it at runtime. Return the value of state with a specific command. Signed-off-by:Daniel Lezcano <dlezcano@fr.ibm.com>
-
Daniel Lezcano authored
This file is no longer used, let's remove it. Signed-off-by:Daniel Lezcano <dlezcano@fr.ibm.com>
-
Daniel Lezcano authored
Remove old dead code. Signed-off-by:Daniel Lezcano <dlezcano@fr.ibm.com>
-
Daniel Lezcano authored
Handle the stop command. The stop command waits for the peer to disconnect, that means the peer has exited, so it is safe to return to the user control. By this way, we ensure a stop command followed by a start or a destroy won't fail with a race condition because the start command is not yet finised. Signed-off-by:
Daniel Lezcano <dlezcano@fr.ibm.com> Signed-off-by:
Michel Normand <normand@fr.ibm.com>
-
Michel Normand authored
report to command requester the errno if credential failure, rather than to only close the connection. Signed-off-by:
Daniel Lezcano <dlezcano@fr.ibm.com> Signed-off-by:
Michel Normand <normand@fr.ibm.com>
-
Michel Normand authored
move some code of start.c to new commands.c and to console.c Signed-off-by:
Michel Normand <normand@fr.ibm.com> Signed-off-by:
Daniel Lezcano <dlezcano@fr.ibm.com>
-
Michel Normand authored
Replace the current tty service socket by a general command service socket and plug for the moment only the existing tty service. Signed-off-by:
Daniel Lezcano <dlezcano@fr.ibm.com> Signed-off-by:
Michel Normand <normand@fr.ibm.com>
-
Michel Normand authored
this is only a code split to show the real functionality of this function that is not expecting any received data on the connection Signed-off-by:
Michel Normand <normand@fr.ibm.com> Signed-off-by:
Daniel Lezcano <dlezcano@fr.ibm.com>
-
Michel Normand authored
Move the tty service handler to use the mainloop for a future consistent usage. Signed-off-by:
Michel Normand <normand@fr.ibm.com> Signed-off-by:
Daniel Lezcano <dlezcano@fr.ibm.com>
-
Michel Normand authored
Commands should be accepted when they are coming from root. Signed-off-by:
Daniel Lezcano <dlezcano@fr.ibm.com> Signed-off-by:
Michel Normand <normand@fr.ibm.com>
-