Commit c4240864 by Serge Hallyn Committed by Stéphane Graber

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: 's avatarSerge Hallyn <serge.hallyn@ubuntu.com>
parent dba5e06a
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment