diff options
author | Laurent Cheylus <foxy@free.fr> | 2023-11-21 07:03:12 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-21 16:03:12 +0900 |
commit | 952b6af4454ed55626d78e3845c6b5b640ac831d (patch) | |
tree | c17c611da6efbcc603469d1b31a468cf2e842c0f /src/protector | |
parent | 7c674ad7fa3bc2db59645030170cc6012f785d9d (diff) |
Allow files creation in /tmp on OpenBSD (#3512)
- src/protector/protector_openbsd.go: add tmppath for pledge
permissions
- fix junegunn/fzf#3511
Signed-off-by: Laurent Cheylus <foxy@free.fr>
Diffstat (limited to 'src/protector')
-rw-r--r-- | src/protector/protector_openbsd.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/protector/protector_openbsd.go b/src/protector/protector_openbsd.go index 4a72aebe..6d92c59c 100644 --- a/src/protector/protector_openbsd.go +++ b/src/protector/protector_openbsd.go @@ -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") + unix.PledgePromises("stdio rpath tty proc exec inet tmppath") } |