oficina / equipo Public

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

Plain git — no account needed to clone.

Download

Download this file

1package containment
2
3import (
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
14const oPath = unix.O_RDONLY
15
16func pidfdOpen(int) (int, error) { return -1, unix.ENOSYS }
17func pidfdSignal(int, unix.Signal) error { return unix.ENOSYS }
18func parentDeathKill() *syscall.SysProcAttr { return &syscall.SysProcAttr{} }
19func pathNoLinks(string) (int, error) { return -1, unix.ENOSYS }
20
21// OpenTerminal: no terminal launch on a Mac (no namespace to put it in).
22func OpenTerminal() (master, tty *os.File, err error) { return nil, nil, unix.ENOSYS }
23