]> git.ipfire.org Git - thirdparty/lxc.git/commit
execute: fix app containers without root mapping 2272/head
authorChristian Brauner <christian.brauner@ubuntu.com>
Thu, 12 Apr 2018 10:49:20 +0000 (12:49 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Thu, 12 Apr 2018 15:37:53 +0000 (17:37 +0200)
commit794248d09d3a60633c901becc9d985db697f2feb
tree05c8d0543ff2be47392a7815a10cc8029bce9027
parent112930688bd306592a215180cf9b5801e5358eb8
execute: fix app containers without root mapping

When starting application containers without a mapping for container root are
started, a dummy bind-mount target for lxc-init needs to be created. This will
not always work directly under "/" when e.g. permissions are missing due to the
ownership and/or mode of "/". We can try to work around this by using the
P_tmpdir as defined in POSIX which should usually land us in /tmp where
basically everyone can create files.

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