Added clone syscall check for uid/gid mapping.

Now it's possible to pass -DNXT_HAVE_CLONE=0 for debugging.
This commit is contained in:
Tiago Natel
2019-10-28 16:02:40 +00:00
parent 0b02e74abc
commit 4a79e9631b

View File

@@ -207,7 +207,7 @@ nxt_process_create(nxt_task_t *task, nxt_process_t *process)
goto fail; goto fail;
} }
#if (NXT_HAVE_CLONE_NEWUSER) #if (NXT_HAVE_CLONE && NXT_HAVE_CLONE_NEWUSER)
if ((init->isolation.clone.flags & CLONE_NEWUSER) == CLONE_NEWUSER) { if ((init->isolation.clone.flags & CLONE_NEWUSER) == CLONE_NEWUSER) {
ret = nxt_clone_proc_map(task, pid, &init->isolation.clone); ret = nxt_clone_proc_map(task, pid, &init->isolation.clone);
if (nxt_slow_path(ret != NXT_OK)) { if (nxt_slow_path(ret != NXT_OK)) {