diff options
author | Kamil Trzciński <ayufan@ayufan.eu> | 2020-09-02 16:35:22 +0300 |
---|---|---|
committer | Kamil Trzciński <ayufan@ayufan.eu> | 2020-09-02 16:38:06 +0300 |
commit | 6af478ea6947d76d331aa6394f81ce50511e5055 (patch) | |
tree | 19abbce1a2174df0b99890d0322ba71798555a51 /daemon.go | |
parent | 4e64869e248537b2bb8719c47620597595a46ea4 (diff) |
Remove `LazyUnbind` method
Diffstat (limited to 'daemon.go')
-rw-r--r-- | daemon.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 { |