Debian Codegraph @

src/protector/protector_openbsd.go

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