mirror of
https://github.com/gopasspw/gopass.git
synced 2026-05-30 11:18:48 +02:00
71861e4a8b
Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
19 lines
603 B
Go
19 lines
603 B
Go
//go:build !openbsd
|
|
|
|
// Package protect provides an interface to the pledge syscall.
|
|
// It is used to limit the system calls a process can make.
|
|
// This is used to limit the attack surface of the process.
|
|
// The pledge syscall is only available on OpenBSD.
|
|
// It is not available on other systems.
|
|
// This package is a no-op on other systems.
|
|
package protect
|
|
|
|
// ProtectEnabled lets us know if we have protection or not.
|
|
// It is false on all systems except OpenBSD.
|
|
var ProtectEnabled = false
|
|
|
|
// Pledge on any other system than OpenBSD doesn't do anything.
|
|
func Pledge(s string) error {
|
|
return nil
|
|
}
|