Skip to content

Commit

Permalink
Fix crash on OpenBSD with --listen (#3483)
Browse files Browse the repository at this point in the history
- src/protector/protector_openbsd.go: add inet permissions for pledge
  - fix #3481

Signed-off-by: Laurent Cheylus <[email protected]>
  • Loading branch information
lcheylus authored Oct 16, 2023
1 parent 3666448 commit d51b71e
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")
unix.PledgePromises("stdio rpath tty proc exec inet")
}

0 comments on commit d51b71e

Please sign in to comment.