mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-16 11:01:26 +00:00
start: add crucial details about lxc_spawn()
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
60883ba8e1
commit
480588e6ad
@ -1071,6 +1071,13 @@ void resolve_clone_flags(struct lxc_handler *handler)
|
||||
INFO("Inheriting a UTS namespace.");
|
||||
}
|
||||
|
||||
/* lxc_spawn() performs crucial setup tasks and clone()s the new process which
|
||||
* exec()s the requested container binary.
|
||||
* Note that lxc_spawn() runs in the parent namespaces. Any operations performed
|
||||
* right here should be double checked if they'd pose a security risk. (For
|
||||
* example, any {u}mount() operations performed here will be reflected on the
|
||||
* host!)
|
||||
*/
|
||||
static int lxc_spawn(struct lxc_handler *handler)
|
||||
{
|
||||
int failed_before_rename = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user