20 lines
247 B
Go
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)
|
|
}
|