Skip to content
Myr

Fix crash on OpenBSD with --listen (#3483)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

- src/protector/protector_openbsd.go: add inet permissions for pledge - fix #3481

authored by Laurent Cheylus · committed by GitHub · parent 3666448 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • Signed-off-by: Laurent Cheylus <foxy@free.fr>

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:src/protector/protector_openbsd.go+1 added-1 removed
4 unmodified lines
5import "golang.org/x/sys/unix"67// Protect calls OS specific protections like pledge on OpenBSD8func Protect() {9 unix.PledgePromises("stdio rpath tty proc exec")9 unix.PledgePromises("stdio rpath tty proc exec inet")10}