mirror of
https://github.com/junegunn/fzf.git
synced 2026-04-22 23:58:10 +08:00
11 lines
238 B
Go
11 lines
238 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 cpath dpath wpath rpath inet fattr unix tty proc exec")
|
|
}
|