mirror of
https://github.com/junegunn/fzf.git
synced 2025-07-30 19:52:00 -07:00
11 lines
229 B
Go
11 lines
229 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 dpath wpath rpath tty proc exec inet tmppath")
|
|
}
|