containerd/mount
Brian Goff a24ef09937 Replace mount fork hack with CLONE_FS
This change spins up a new goroutine, locks it to a thread, then
unshares CLONE_FS which allows us to `Chdir` from inside the thread
without affecting the rest of the program.

The thread is no longer usable after unshare so it leaves the thread
locked to prevent go from returning the thread to the thread pool.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
2022-11-03 22:30:35 +00:00
..
lookup_linux_test.go Use testify 2022-04-01 18:17:58 -07:00
lookup_unix.go feat: replace github.com/pkg/errors to errors 2022-01-07 10:27:03 +08:00
lookup_unsupported.go Run go fmt with Go 1.17 2021-08-22 09:31:50 +09:00
losetup_linux_test.go refactor: move from io/ioutil to io and os package 2021-09-21 09:50:38 +08:00
losetup_linux.go mount: use ioctl helpers from x/sys/unix 2022-08-30 10:38:29 +02:00
mount_freebsd.go feat: replace github.com/pkg/errors to errors 2022-01-07 10:27:03 +08:00
mount_linux_test.go Replace mount fork hack with CLONE_FS 2022-11-03 22:30:35 +00:00
mount_linux.go Replace mount fork hack with CLONE_FS 2022-11-03 22:30:35 +00:00
mount_unix.go feat: replace github.com/pkg/errors to errors 2022-01-07 10:27:03 +08:00
mount_windows.go mount: remove unused ErrNotImplementOnWindows 2022-08-29 10:55:04 +02:00
mount.go Merge pull request #2112 from crosbymichael/temp-mounts 2018-02-21 12:56:23 -08:00
mountinfo.go mount: mount.PID(), mount.Self(): change signature to return pointers 2021-01-08 17:31:53 +01:00
temp_unix.go Run go fmt with Go 1.17 2021-08-22 09:31:50 +09:00
temp_unsupported.go Run go fmt with Go 1.17 2021-08-22 09:31:50 +09:00
temp.go Fix followup items from errors replacement 2022-01-07 12:16:00 -08:00