From 4a79e9631b06b82b1a14057fe6febcbd69d4ed4e Mon Sep 17 00:00:00 2001 From: Tiago Natel Date: Mon, 28 Oct 2019 16:02:40 +0000 Subject: [PATCH] Added clone syscall check for uid/gid mapping. Now it's possible to pass -DNXT_HAVE_CLONE=0 for debugging. --- src/nxt_process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nxt_process.c b/src/nxt_process.c index 75a73f0f..4b557b73 100644 --- a/src/nxt_process.c +++ b/src/nxt_process.c @@ -207,7 +207,7 @@ nxt_process_create(nxt_task_t *task, nxt_process_t *process) goto fail; } -#if (NXT_HAVE_CLONE_NEWUSER) +#if (NXT_HAVE_CLONE && NXT_HAVE_CLONE_NEWUSER) if ((init->isolation.clone.flags & CLONE_NEWUSER) == CLONE_NEWUSER) { ret = nxt_clone_proc_map(task, pid, &init->isolation.clone); if (nxt_slow_path(ret != NXT_OK)) {