From d51b71ee8039df8f51bd348b43c68ee462d4a496 Mon Sep 17 00:00:00 2001 From: Laurent Cheylus Date: Mon, 16 Oct 2023 23:46:43 +0000 Subject: [PATCH] Fix crash on OpenBSD with --listen (#3483) - src/protector/protector_openbsd.go: add inet permissions for pledge - fix #3481 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 34784a6..4a72aeb 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") + unix.PledgePromises("stdio rpath tty proc exec inet") }