gopass/pkg/protect/protect.go
Dominik Schulz 71861e4a8b
chore: Update golangci-lint (#3287)
Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
2025-11-12 21:09:26 +01:00

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
}