Unverified Commit 454d6a18 by Christian Brauner Committed by Stéphane Graber

start: userns_exec_full()

Closes #1800. Signed-off-by: 's avatarChristian Brauner <christian.brauner@ubuntu.com>
parent 4f0ba8f6
...@@ -1596,8 +1596,8 @@ static void lxc_destroy_container_on_signal(struct lxc_handler *handler, ...@@ -1596,8 +1596,8 @@ static void lxc_destroy_container_on_signal(struct lxc_handler *handler,
} }
if (!handler->am_root) if (!handler->am_root)
ret = userns_exec_1(handler->conf, lxc_rmdir_onedev_wrapper, ret = userns_exec_full(handler->conf, lxc_rmdir_onedev_wrapper,
destroy, "lxc_rmdir_onedev_wrapper"); destroy, "lxc_rmdir_onedev_wrapper");
else else
ret = lxc_rmdir_onedev(destroy, NULL); ret = lxc_rmdir_onedev(destroy, NULL);
...@@ -1615,9 +1615,12 @@ static int lxc_rmdir_onedev_wrapper(void *data) ...@@ -1615,9 +1615,12 @@ static int lxc_rmdir_onedev_wrapper(void *data)
} }
static bool do_destroy_container(struct lxc_handler *handler) { static bool do_destroy_container(struct lxc_handler *handler) {
int ret;
if (!handler->am_root) { if (!handler->am_root) {
if (userns_exec_1(handler->conf, storage_destroy_wrapper, ret = userns_exec_full(handler->conf, storage_destroy_wrapper,
handler->conf, "storage_destroy_wrapper") < 0) handler->conf, "storage_destroy_wrapper");
if (ret < 0)
return false; return false;
return true; return true;
......
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