]> 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)
committerStéphane Graber <stgraber@ubuntu.com>
Mon, 22 Sep 2014 21:44:16 +0000 (17:44 -0400)
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 573452c50b0648dde185b81964fe23e87fd0010f..a642d860348182f745d580cfc9ec7550e8a6e2a3 100644 (file)
@@ -3367,14 +3367,6 @@ int lxc_map_ids(struct lxc_list *idmap, pid_t pid)
                free(cmdpath);
        }
 
-       if (!use_shadow) {
-               cmdpath = on_path("newgidmap");
-               if (cmdpath) {
-                       use_shadow = 1;
-                       free(cmdpath);
-               }
-       }
-
        if (!use_shadow && geteuid()) {
                ERROR("Missing newuidmap/newgidmap");
                return -1;