mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-05-31 06:30:47 +00:00
d51b71ee80
- src/protector/protector_openbsd.go: add inet permissions for pledge - fix #3481 Signed-off-by: Laurent Cheylus <foxy@free.fr>
11 lines
209 B
Go
11 lines
209 B
Go
//go:build openbsd
|
|
|
|
package protector
|
|
|
|
import "golang.org/x/sys/unix"
|
|
|
|
// Protect calls OS specific protections like pledge on OpenBSD
|
|
func Protect() {
|
|
unix.PledgePromises("stdio rpath tty proc exec inet")
|
|
}
|