blob: 34784a6c6797e48939b8789fe1db338ae6f73baa (
plain)
1
2
3
4
5
6
7
8
9
10
|
//go:build openbsd
package protector
import "golang.org/x/sys/unix"
// Protect calls OS specific protections like pledge on OpenBSD
func Protect() {
unix.PledgePromises("stdio rpath tty proc exec")
}
|