Download this file
| 1 | package containment |
| 2 | |
| 3 | import ( |
| 4 | "os" |
| 5 | "syscall" |
| 6 | |
| 7 | "golang.org/x/sys/unix" |
| 8 | ) |
| 9 | |
| 10 | // A Mac worker never starts a bubblewrap namespace (Mac runners spec |
| 11 | // §4): these stand-ins refuse, so anything that reaches them fails |
| 12 | // closed rather than running unconfined. |
| 13 | |
| 14 | const oPath = unix.O_RDONLY |
| 15 | |
| 16 | func pidfdOpen(int) (int, error) { return -1, unix.ENOSYS } |
| 17 | func pidfdSignal(int, unix.Signal) error { return unix.ENOSYS } |
| 18 | func parentDeathKill() *syscall.SysProcAttr { return &syscall.SysProcAttr{} } |
| 19 | func pathNoLinks(string) (int, error) { return -1, unix.ENOSYS } |
| 20 | |
| 21 | // OpenTerminal: no terminal launch on a Mac (no namespace to put it in). |
| 22 | func OpenTerminal() (master, tty *os.File, err error) { return nil, nil, unix.ENOSYS } |
| 23 | |