btcd/ossec/ossec_openbsd.go
Tim Kuijsten 67aad53f5e harden btcd on OpenBSD
Restrict the available set of system calls to the daemon to the basic
network and filesystem operations on OpenBSD. Further reduce potential
harm by limiting file system access to the btcd data dir and the rpc
files.
2022-04-09 07:22:22 -04:00

18 lines
318 B
Go

package ossec
import (
"golang.org/x/sys/unix"
)
func Unveil(path string, perms string) error {
return unix.Unveil(path, perms)
}
func Pledge(promises, execpromises string) error {
return unix.Pledge(promises, execpromises)
}
func PledgePromises(promises string) error {
return unix.PledgePromises(promises)
}