Isolation: remove redundant macro.
This commit is contained in:
@@ -42,9 +42,6 @@ pid_t nxt_clone(nxt_int_t flags);
|
|||||||
|
|
||||||
#if (NXT_HAVE_CLONE_NEWUSER)
|
#if (NXT_HAVE_CLONE_NEWUSER)
|
||||||
|
|
||||||
#define NXT_CLONE_MNT(flags) \
|
|
||||||
((flags & CLONE_NEWNS) == CLONE_NEWNS)
|
|
||||||
|
|
||||||
NXT_EXPORT nxt_int_t nxt_clone_credential_map(nxt_task_t *task, pid_t pid,
|
NXT_EXPORT nxt_int_t nxt_clone_credential_map(nxt_task_t *task, pid_t pid,
|
||||||
nxt_credential_t *creds, nxt_clone_t *clone);
|
nxt_credential_t *creds, nxt_clone_t *clone);
|
||||||
NXT_EXPORT nxt_int_t nxt_clone_vldt_credential_uidmap(nxt_task_t *task,
|
NXT_EXPORT nxt_int_t nxt_clone_vldt_credential_uidmap(nxt_task_t *task,
|
||||||
|
|||||||
@@ -707,7 +707,7 @@ nxt_isolation_change_root(nxt_task_t *task, nxt_process_t *process)
|
|||||||
|
|
||||||
nxt_debug(task, "change root: %s", rootfs);
|
nxt_debug(task, "change root: %s", rootfs);
|
||||||
|
|
||||||
if (NXT_CLONE_MNT(process->isolation.clone.flags)) {
|
if (nxt_is_clone_flag_set(process->isolation.clone.flags, NEWNS)) {
|
||||||
ret = nxt_isolation_pivot_root(task, rootfs);
|
ret = nxt_isolation_pivot_root(task, rootfs);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user