github.com/btcsuite/btcd@v0.24.0/ossec/ossec_openbsd.go (about)

     1  package ossec
     2  
     3  import (
     4  	"golang.org/x/sys/unix"
     5  )
     6  
     7  func Unveil(path string, perms string) error {
     8  	return unix.Unveil(path, perms)
     9  }
    10  
    11  func Pledge(promises, execpromises string) error {
    12  	return unix.Pledge(promises, execpromises)
    13  }
    14  
    15  func PledgePromises(promises string) error {
    16  	return unix.PledgePromises(promises)
    17  }