mirror of
https://github.com/junegunn/fzf
synced 2026-07-22 16:53:18 +00:00
952b6af445
- src/protector/protector_openbsd.go: add tmppath for pledge
permissions
- fix junegunn/fzf#3511
Signed-off-by: Laurent Cheylus <foxy@free.fr>
11 lines
217 B
Go
11 lines
217 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 tmppath")
|
|
}
|