protector_openbsd.go
This file
Path
src/protector/protector_openbsd.go
10 lines · 238 bytes · Go
Last changed by
Not known.
History of this fileTake it
The walk stopped after 200 commits: lines older than 76efddd point at it.
bash: shift-delete to delete history entries during CTRL-RJunegunn Choibefore adoption76efddd
lines 1–10why, one step back1//go:build openbsd23package protector45import "golang.org/x/sys/unix"67// Protect calls OS specific protections like pledge on OpenBSD8func Protect() {9 unix.PledgePromises("stdio cpath dpath wpath rpath inet fattr unix tty proc exec")10}