Commit 8c9a7665 by Tycho Andersen

start: setsid in init task as well

If we don't do this, we'll leak the parent's session id to the container, which maybe doesn't matter, but it still seems better to set it anyway. Also, it breaks CRIU for containers that don't call setsid themselves. Signed-off-by: 's avatarTycho Andersen <tycho.andersen@canonical.com>
parent fa79f0a4
......@@ -851,6 +851,8 @@ static int do_start(void *data)
goto out_warn_father;
}
setsid();
/* after this call, we are in error because this
* ops should not return as it execs */
handler->ops->start(handler, handler->data);
......
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