Also drop caps in unpriv containers

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
This commit is contained in:
Stéphane Graber 2014-12-26 00:17:25 +01:00
parent 98b745498b
commit 97a8f74f0c

View File

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