current commit
260317.1 · Add "unix" and "fattr" promises (#4719)
//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 cpath dpath wpath rpath inet fattr unix tty proc exec")
}