20 lines
289 B
Go
20 lines
289 B
Go
//+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)
|
|
}
|