Add wpath and dpath pledges on OpenBSD to make --tmux work (#3877)

This commit is contained in:
bsdmp 2024-06-19 05:26:08 +03:00 committed by GitHub
parent 6179faf778
commit 295b89631b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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 rpath tty proc exec inet tmppath")
unix.PledgePromises("stdio dpath wpath rpath tty proc exec inet tmppath")
}