Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil Trzciński <ayufan@ayufan.eu>2020-09-02 16:35:22 +0300
committerKamil Trzciński <ayufan@ayufan.eu>2020-09-02 16:38:06 +0300
commit6af478ea6947d76d331aa6394f81ce50511e5055 (patch)
tree19abbce1a2174df0b99890d0322ba71798555a51 /daemon.go
parent4e64869e248537b2bb8719c47620597595a46ea4 (diff)
Remove `LazyUnbind` method
Diffstat (limited to 'daemon.go')
-rw-r--r--daemon.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/daemon.go b/daemon.go
index 5091069b..11fa3e9e 100644
--- a/daemon.go
+++ b/daemon.go
@@ -287,8 +287,8 @@ func daemonize(config appConfig, uid, gid uint, inPlace bool) error {
// Unshare mount namespace
// 1. If this fails, in a worst case changes to mounts will propagate to other processes
- // 2. Needed for fixing `os.Getwd()` which does return `(unreachable)`:
- // 3. https://man7.org/linux/man-pages/man2/getcwd.2.html.
+ // 2. Ensures that jail mount is not propagated to the parent mount namespace
+ // to avoid populating `tmp` directory with old mounts
_ = wrapper.Unshare()
if err := wrapper.Build(); err != nil {