summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorTiago Natel <t.nateldemoura@f5.com>2019-10-28 16:02:40 +0000
committerTiago Natel <t.nateldemoura@f5.com>2019-10-28 16:02:40 +0000
commit4a79e9631b06b82b1a14057fe6febcbd69d4ed4e (patch)
tree3c0cc61d9fb2d3918d31fc9b59632ed89de17313
parent0b02e74abcb460ef61292ae3fe015489d51946a3 (diff)
downloadunit-4a79e9631b06b82b1a14057fe6febcbd69d4ed4e.tar.gz
unit-4a79e9631b06b82b1a14057fe6febcbd69d4ed4e.tar.bz2
Added clone syscall check for uid/gid mapping.
Now it's possible to pass -DNXT_HAVE_CLONE=0 for debugging.
Diffstat (limited to '')
-rw-r--r--src/nxt_process.c2
1 files changed, 1 insertions, 1 deletions
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)) {