Skip to content
Myr

Remove tmppath pledge on OpenBSD (#4699)

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

"tmppath" pledge is no longer supported. See commit https://github.com/openbsd/src/commit/c883e836f48a8ca9ee3be9de6ebf4b36751f2196

authored by Laurent Cheylus · committed by GitHub · parent 9226bc6 · 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 dpath wpath rpath tty proc exec inet tmppath")9 unix.PledgePromises("stdio cpath dpath wpath rpath tty proc exec inet")10}