mcchunkie/protect_openbsd.go

21 lines
248 B
Go
Raw Normal View History

2020-02-02 11:16:08 -07:00
//+build openbsd
package main
import (
"golang.org/x/sys/unix"
)
func unveil(path string, flags string) {
unix.Unveil(path, flags)
}
func unveilBlock() {
unix.UnveilBlock()
}
func plegde(promises string) {
unix.PledgePromises(promises)
}