]> git.proxmox.com Git - mirror_lxc.git/commit
start: switch ids at last possible instance
authorChristian Brauner <christian.brauner@ubuntu.com>
Mon, 11 Sep 2017 01:16:06 +0000 (03:16 +0200)
committerStéphane Graber <stgraber@ubuntu.com>
Sun, 24 Sep 2017 04:23:19 +0000 (00:23 -0400)
commitd745d937538081c456b850845680aa18b4a1da65
treede62f761ca477250a3ed747578ee7a40941fa9a8
parent2c4bb8e39675fb9bd95959d95367dba54fbbedfd
start: switch ids at last possible instance

This is technically not necessary but it is a privilege sensitive operation.
Meaning if anyone wants to do something that requires privilege it should be
done before the id switch. So let's move the id switch immediately before the
exec so that it's called at the last possible moment.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/start.c