oficina / equipo Public

Clone
git clone https://amadan.net/oficina/equipo

Plain git — no account needed to clone.

Download

Download this file

1package egress
2
3import "golang.org/x/sys/unix"
4
5// openDirNoLinks opens a directory refusing a symbolic link anywhere
6// (O_NOFOLLOW_ANY). The egress proxy serves the Linux containment; a Mac
7// worker never starts it, but the package builds there.
8func openDirNoLinks(dir string) (int, error) {
9 return unix.Open(dir, unix.O_RDONLY|unix.O_DIRECTORY|unix.O_CLOEXEC|unix.O_NOFOLLOW_ANY, 0)
10}
11