]> git.ipfire.org Git - thirdparty/lxc.git/commit
attach: handle id switching smarter
authorChristian Brauner <christian.brauner@ubuntu.com>
Sun, 9 Sep 2018 11:20:14 +0000 (13:20 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Tue, 11 Sep 2018 08:54:44 +0000 (10:54 +0200)
commit936efc72f60c6e4b83daadcf834f81abced0eaa9
tree5efb9a6a601dde9abddb8fb81c45e7bfa9d98e79
parentdb2d1af171b710abdb435e7526b33a7bb0289d3f
attach: handle id switching smarter

For setup, switch to the most privileged ids we can find. That is either
nsuid 0 if a mapping has been established if not switch to the ids the
init running in the container was started with.
After setup, switch to the actual requested ids.

Closes #2591.

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