Unverified Commit e6bbc40b by Christian Brauner Committed by Stéphane Graber

start: add crucial details about lxc_spawn()

parent 9a135d2c
...@@ -1046,6 +1046,13 @@ void resolve_clone_flags(struct lxc_handler *handler) ...@@ -1046,6 +1046,13 @@ void resolve_clone_flags(struct lxc_handler *handler)
INFO("Inheriting a UTS namespace."); 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) static int lxc_spawn(struct lxc_handler *handler)
{ {
int failed_before_rename = 0; int failed_before_rename = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment