diff options
author | Tiago Natel de Moura <t.nateldemoura@f5.com> | 2020-12-14 12:00:28 +0000 |
---|---|---|
committer | Tiago Natel de Moura <t.nateldemoura@f5.com> | 2020-12-14 12:00:28 +0000 |
commit | 1e9def50c8ecc9f9331908b5fd46b218019a0fb0 (patch) | |
tree | 64ef2bebb3f7e34ea5e3bff2050473c4e6c24446 /src/nxt_isolation.c | |
parent | 425ffc9416391e5e41236708b655d941f560c661 (diff) | |
download | unit-1e9def50c8ecc9f9331908b5fd46b218019a0fb0.tar.gz unit-1e9def50c8ecc9f9331908b5fd46b218019a0fb0.tar.bz2 |
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.
Diffstat (limited to 'src/nxt_isolation.c')
-rw-r--r-- | src/nxt_isolation.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/nxt_isolation.c b/src/nxt_isolation.c index 1e6323bc..cab0074b 100644 --- a/src/nxt_isolation.c +++ b/src/nxt_isolation.c @@ -676,12 +676,6 @@ nxt_isolation_unmount_all(nxt_task_t *task, nxt_process_t *process) 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); automount = &process->isolation.automount; |