protect/protect_openbsd.go
2023-01-14 06:16:00 -07:00

21 lines
309 B
Go

//go:build openbsd
// +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)
}