2022-03-29 12:20:33 +00:00
|
|
|
//go:build openbsd
|
2020-01-19 05:13:32 +00:00
|
|
|
|
|
|
|
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")
|
|
|
|
}
|