Files
browserpass-native/openbsd/openbsd.go
Guillermo Ramos 8e32908ada Fix OpenBSD pledges (#111)
- Change call from 'unix.Pledge' to 'unix.PledgePromises' to prevent subprocesses (gpg) from
  being already locked (execpromises="")
- New pledges needed for syslog: unix + tty
2021-10-23 19:24:44 +02:00

11 lines
163 B
Go

// +build openbsd
package openbsd
import "golang.org/x/sys/unix"
// Pledge allowed system calls
func Pledge(promises string) {
unix.PledgePromises(promises)
}