github.com/criyle/go-sandbox@v0.10.3/container/consts_linux.go (about) 1 package container 2 3 type cmdType int8 4 5 const ( 6 cmdPing cmdType = iota + 1 7 cmdOpen 8 cmdDelete 9 cmdReset 10 cmdExecve 11 cmdOk 12 cmdKill 13 cmdConf 14 15 initArg = "container_init" 16 17 containerUID = 1000 18 containerGID = 1000 19 20 containerName = "go-sandbox" 21 containerWD = "/w" 22 23 containerMaxProc = 1 24 ) 25 26 var defaultSymLinks = []SymbolicLink{ 27 {LinkPath: "/dev/fd", Target: "/proc/self/fd"}, 28 {LinkPath: "/dev/stdin", Target: "/proc/self/fd/0"}, 29 {LinkPath: "/dev/stdout", Target: "/proc/self/fd/1"}, 30 {LinkPath: "/dev/stderr", Target: "/proc/self/fd/2"}, 31 } 32 33 var defaultMaskPaths = []string{ 34 // https://github.com/containerd/containerd/blob/f0a32c66dad1e9de716c9960af806105d691cd78/oci/spec.go#L165-L176 35 "/proc/acpi", 36 "/proc/asound", 37 "/proc/kcore", 38 "/proc/keys", 39 "/proc/latency_stats", 40 "/proc/timer_list", 41 "/proc/timer_stats", 42 "/proc/sched_debug", 43 "/sys/firmware", 44 "/proc/scsi", 45 46 "/usr/lib/wsl", 47 }