~qbit/protect

ref: v1.1.0 protect/protect_openbsd.go -rw-r--r-- 289 bytes
c48b0e8fAaron Bieber Add ReducePledges for easier reduction of pledges 3 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//+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)
}