Skip to content

Commit

Permalink
Allow files creation in /tmp on OpenBSD (#3512)
Browse files Browse the repository at this point in the history
- src/protector/protector_openbsd.go: add tmppath for pledge
    permissions
  - fix #3511

Signed-off-by: Laurent Cheylus <foxy@free.fr>
  • Loading branch information
lcheylus authored Nov 21, 2023
1 parent 7c674ad commit 952b6af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/protector/protector_openbsd.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}

0 comments on commit 952b6af

Please sign in to comment.