summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_isolation.c (follow)
AgeCommit message (Collapse)AuthorFilesLines
2021-08-03Fixed dead assignments.Max Romanov1-2/+2
Found by Clang Static Analyzer.
2020-12-14Isolation: fixed unmounting when mnt namespace is in place.Tiago Natel de Moura1-6/+0
The code had a wrong assumption that "mount namespaces" automatically unmounts process mounts when exits but this happens only with unprivileged mounts.
2020-11-16Isolation: added option to disable "procfs" mount.Tiago Natel de Moura1-18/+27
Now users can disable the default procfs mount point in the rootfs. { "isolation": { "automount": { "procfs": false } } }
2020-11-13Isolation: added option to disable tmpfs mount.Tiago Natel de Moura1-19/+29
Now users can disable the default tmpfs mount point in the rootfs. { "isolation": { "automount": { "tmpfs": false } } }
2020-10-29Isolation: mounting of procfs by default when using "rootfs".Tiago Natel de Moura1-37/+49
2020-10-29Isolation: correctly unmount non-dependent paths first.Tiago Natel de Moura1-4/+36
When mount points reside within other mount points, this patch sorts them by path length and then unmounts then in an order reverse to their mounting. This results in independent paths being unmounted first. This fixes an issue in buildbots where dependent paths failed to unmount, leading to the build script removing system-wide language libraries.
2020-09-18Updated racially charged language in messages and comments.Artem Konev1-3/+3
2020-09-16Isolation: remove redundant macro.Tiago Natel de Moura1-1/+1
2020-08-25Isolation: added "automount" option.Tiago Natel de Moura1-10/+57
Now it's possible to disable default bind mounts of languages by setting: { "isolation": { "automount": { "language_deps": false } } } In this case, the user is responsible to provide a "rootfs" containing the language libraries and required files for the application.
2020-08-20Isolation: mount tmpfs by default.Tiago Natel de Moura1-49/+56
2020-08-20Moved isolation related code to "nxt_isolation.c".Tiago Natel de Moura1-0/+958