Add "unix" and "fattr" promises (#4719)

Without this fzf --listen=/tmp/foo.sock fails on OpenBSD.
This commit is contained in:
David Leadbeater
2026-03-17 13:44:13 +11:00
committed by GitHub
parent cf57950301
commit fc60406684

View File

@@ -6,5 +6,5 @@ import "golang.org/x/sys/unix"
// Protect calls OS specific protections like pledge on OpenBSD
func Protect() {
unix.PledgePromises("stdio cpath dpath wpath rpath tty proc exec inet")
unix.PledgePromises("stdio cpath dpath wpath rpath inet fattr unix tty proc exec")
}