mirror of
https://github.com/btcsuite/btcd.git
synced 2024-11-19 09:50:08 +01:00
67aad53f5e
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.
18 lines
318 B
Go
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)
|
|
}
|