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