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()
|
|
|
|
}
|
|
|
|
|
2020-02-03 20:42:19 -07:00
|
|
|
func pledge(promises string) {
|
2020-02-02 11:16:08 -07:00
|
|
|
unix.PledgePromises(promises)
|
|
|
|
}
|