mirror of
git://github.com/lxc/lxc
synced 2025-09-03 15:49:52 +00:00
start: s/||/&&/ when mapping ids
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
@@ -1559,7 +1559,7 @@ static int lxc_spawn(struct lxc_handler *handler)
|
|||||||
* again.
|
* again.
|
||||||
*/
|
*/
|
||||||
if (wants_to_map_ids) {
|
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) {
|
(handler->conf->ns_keep & CLONE_NEWUSER) == 0) {
|
||||||
ret = lxc_map_ids(id_map, handler->pid);
|
ret = lxc_map_ids(id_map, handler->pid);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
|
Reference in New Issue
Block a user