Files
gopass-mirror/pkg/protect/protect_openbsd.go
2025-11-12 21:09:26 +01:00

16 lines
356 B
Go

//go:build openbsd
package protect
import "golang.org/x/sys/unix"
// ProtectEnabled lets us know if we have protection or not.
// It is true on OpenBSD.
var ProtectEnabled = true
// Pledge on OpenBSD lets us "promise" to only run a subset of
// system calls: http://man.openbsd.org/pledge
func Pledge(s string) error {
return unix.PledgePromises(s)
}