start: s/||/&&/ when mapping ids

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
Christian Brauner 2018-02-14 00:19:42 +01:00
parent 6efacf80e8
commit df3c5314d2
No known key found for this signature in database
GPG Key ID: 8EB056D53EECB12D

View File

@ -1559,7 +1559,7 @@ static int lxc_spawn(struct lxc_handler *handler)
* again.
*/
if (wants_to_map_ids) {
if (!handler->conf->ns_share[LXC_NS_USER] ||
if (!handler->conf->ns_share[LXC_NS_USER] &&
(handler->conf->ns_keep & CLONE_NEWUSER) == 0) {
ret = lxc_map_ids(id_map, handler->pid);
if (ret < 0) {