summaryrefslogtreecommitdiffstats
path: root/src/protector/protector_openbsd.go
blob: 84a5ded14a82300a2c5cf5259f0e7f5362b2d173 (plain)
1
2
3
4
5
6
7
8
9
10
// +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")
}