]> git.ipfire.org Git - thirdparty/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)
committerChristian Brauner <christian.brauner@ubuntu.com>
Mon, 11 Sep 2017 06:44:06 +0000 (08:44 +0200)
commit76bdf2992c0c90f55b233dd5985d49d02c0c55a7
tree3979e81aa0708ef8ec40a68603dc26dc701c0408
parent42f055d0f6aef0861593bc01cc6cfa424aaa0f7e
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