From d57ed157ad5d4abfbf4ac597069d0468d95cffb6 Mon Sep 17 00:00:00 2001 From: Laurent Cheylus Date: Mon, 2 Mar 2026 14:55:13 +0100 Subject: [PATCH] Remove tmppath pledge on OpenBSD (#4699) "tmppath" pledge is no longer supported. See commit https://github.com/openbsd/src/commit/c883e836f48a8ca9ee3be9de6ebf4b36751f2196 Signed-off-by: Laurent Cheylus --- src/protector/protector_openbsd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/protector/protector_openbsd.go b/src/protector/protector_openbsd.go index 7030b91e..51138b7e 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 dpath wpath rpath tty proc exec inet tmppath") + unix.PledgePromises("stdio cpath dpath wpath rpath tty proc exec inet") }