]> git.proxmox.com Git - mirror_lxc.git/commit - src/lxc/utils.c
lxcapi_destroy: run in a namespace if we are unprivileged
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Fri, 22 Nov 2013 20:39:37 +0000 (14:39 -0600)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Fri, 22 Nov 2013 21:20:16 +0000 (15:20 -0600)
commit4355ab5fabd56cab1f41d5286b4dc99ef2e7ebe9
treebfdc9ceff1c7cea9febbc5a0befc89a20f90777e
parentdfd6d8f0190ac5676ca0ef00669b9a11f59bd356
lxcapi_destroy: run in a namespace if we are unprivileged

This is necessary to have the rights to remove files owned by our subuids.

Also update lxc_rmdir_onedev to return 0 on success, -1 on failure.
Callers were not consistent in using it correctly, and this is more
in keeping with the rest of our code.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
src/lxc/bdev.c
src/lxc/conf.c
src/lxc/conf.h
src/lxc/lxc_destroy.c
src/lxc/lxccontainer.c
src/lxc/utils.c