attempts to unveil and panic if it fails this does nothing on non-OpenBSD systems
(path string, flags string)
| 46 | // attempts to unveil and panic if it fails |
| 47 | // this does nothing on non-OpenBSD systems |
| 48 | func unveilOrPanic(path string, flags string) { |
| 49 | panicIfError(protect.Unveil(path, flags)) |
| 50 | } |
| 51 | |
| 52 | // get the executable path via syscalls or infer it from argv |
| 53 | func executablePath() string { |