Commit 97a8f74f by Stéphane Graber

Also drop caps in unpriv containers

parent 98b74549
...@@ -4158,7 +4158,6 @@ int lxc_setup(struct lxc_handler *handler) ...@@ -4158,7 +4158,6 @@ int lxc_setup(struct lxc_handler *handler)
return -1; return -1;
} }
if (lxc_list_empty(&lxc_conf->id_map)) {
if (!lxc_list_empty(&lxc_conf->keepcaps)) { if (!lxc_list_empty(&lxc_conf->keepcaps)) {
if (!lxc_list_empty(&lxc_conf->caps)) { if (!lxc_list_empty(&lxc_conf->caps)) {
ERROR("Simultaneously requested dropping and keeping caps"); ERROR("Simultaneously requested dropping and keeping caps");
...@@ -4172,7 +4171,6 @@ int lxc_setup(struct lxc_handler *handler) ...@@ -4172,7 +4171,6 @@ int lxc_setup(struct lxc_handler *handler)
ERROR("failed to drop capabilities"); ERROR("failed to drop capabilities");
return -1; return -1;
} }
}
NOTICE("'%s' is setup.", name); NOTICE("'%s' is setup.", name);
......
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