]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
lxc_map_ids: don't do bogus chekc for newgidmap
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Fri, 22 Aug 2014 03:50:36 +0000 (22:50 -0500)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Fri, 22 Aug 2014 03:50:36 +0000 (22:50 -0500)
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 <serge.hallyn@ubuntu.com>
src/lxc/conf.c

index 037be1dd4b644b6d8631d3f2d2f160ea0ce08e54..6789562efd54d98c1735be6527f5c89fdb7eeac2 100644 (file)
@@ -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;