mcchunkie/protect_openbsd.go
2020-02-03 20:42:19 -07:00

20 lines
247 B
Go

//+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 pledge(promises string) {
unix.PledgePromises(promises)
}