21 lines
309 B
Go
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)
|
|
}
|