Isolation: fixed unmounting when mnt namespace is in place.

The code had a wrong assumption that "mount namespaces" automatically
unmounts process mounts when exits but this happens only with
unprivileged mounts.
This commit is contained in:
Tiago Natel de Moura
2020-12-14 12:00:28 +00:00
parent 425ffc9416
commit 1e9def50c8

View File

@@ -676,12 +676,6 @@ nxt_isolation_unmount_all(nxt_task_t *task, nxt_process_t *process)
return; return;
} }
#if (NXT_HAVE_CLONE_NEWNS)
if (nxt_is_clone_flag_set(process->isolation.clone.flags, NEWNS)) {
return;
}
#endif
nxt_debug(task, "unmount all (%s)", process->name); nxt_debug(task, "unmount all (%s)", process->name);
automount = &process->isolation.automount; automount = &process->isolation.automount;