From: Serge Hallyn Date: Fri, 22 Aug 2014 03:50:36 +0000 (-0500) Subject: lxc_map_ids: don't do bogus chekc for newgidmap X-Git-Tag: lxc-1.1.0.alpha2~64 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=61c237221de7881dbd8f8e5defed8f546186cd08;p=thirdparty%2Flxc.git lxc_map_ids: don't do bogus chekc for newgidmap If we didn't find newuidmap, then simply require the caller to be root and write to /proc/self/uidmap manually. Checking for newgidmap to exist is bogus. Signed-off-by: Serge Hallyn --- diff --git a/src/lxc/conf.c b/src/lxc/conf.c index 037be1dd4..6789562ef 100644 --- a/src/lxc/conf.c +++ b/src/lxc/conf.c @@ -3409,14 +3409,6 @@ int lxc_map_ids(struct lxc_list *idmap, pid_t pid) free(cmdpath); } - if (!use_shadow) { - cmdpath = on_path("newgidmap", NULL); - if (cmdpath) { - use_shadow = 1; - free(cmdpath); - } - } - if (!use_shadow && geteuid()) { ERROR("Missing newuidmap/newgidmap"); return -1;