
- Change call from 'unix.Pledge' to 'unix.PledgePromises' to prevent subprocesses (gpg) from being already locked (execpromises="") - New pledges needed for syslog: unix + tty
11 lines
163 B
Go
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)
|
|
}
|