mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-11-11 16:15:46 +00:00
11 lines
203 B
Go
11 lines
203 B
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")
|
||
|
}
|