protect/protect_openbsd.go
2020-05-10 07:04:34 -06:00

20 lines
289 B
Go

//+build openbsd
package protect
import (
"golang.org/x/sys/unix"
)
func unveil(path string, flags string) error {
return unix.Unveil(path, flags)
}
func unveilBlock() error {
return unix.UnveilBlock()
}
func pledge(promises string) error {
return unix.PledgePromises(promises)
}