[lxc-devel] [lxc/lxc] 4355ab: lxcapi_destroy: run in a namespace if we are unpri...
GitHub
noreply at github.com
Fri Nov 22 21:20:41 UTC 2013
Branch: refs/heads/master
Home: https://github.com/lxc/lxc
Commit: 4355ab5fabd56cab1f41d5286b4dc99ef2e7ebe9
https://github.com/lxc/lxc/commit/4355ab5fabd56cab1f41d5286b4dc99ef2e7ebe9
Author: Serge Hallyn <serge.hallyn at ubuntu.com>
Date: 2013-11-22 (Fri, 22 Nov 2013)
Changed paths:
M src/lxc/bdev.c
M src/lxc/conf.c
M src/lxc/conf.h
M src/lxc/lxc_destroy.c
M src/lxc/lxccontainer.c
M src/lxc/utils.c
Log Message:
-----------
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 at ubuntu.com>
Acked-by: Stéphane Graber <stgraber at ubuntu.com>
More information about the lxc-devel
mailing list