attempts to pledge and panic if it fails this does nothing on non-OpenBSD systems
(promises string)
| 40 | // attempts to pledge and panic if it fails |
| 41 | // this does nothing on non-OpenBSD systems |
| 42 | func pledgeOrPanic(promises string) { |
| 43 | panicIfError(protect.Pledge(promises)) |
| 44 | } |
| 45 | |
| 46 | // attempts to unveil and panic if it fails |
| 47 | // this does nothing on non-OpenBSD systems |