Skip to content
Myr

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

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Without this fzf --listen=/tmp/foo.sock fails on OpenBSD.

authored by David Leadbeater · committed by GitHub · parent cf57950 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:src/protector/protector_openbsd.go+1 added-1 removed
4 unmodified lines
5import "golang.org/x/sys/unix"67// Protect calls OS specific protections like pledge on OpenBSD8func Protect() {9 unix.PledgePromises("stdio cpath dpath wpath rpath tty proc exec inet")9 unix.PledgePromises("stdio cpath dpath wpath rpath inet fattr unix tty proc exec")10}