Skip to content
Myr

protector_openbsd.go

This file

Path

src/protector/protector_openbsd.go

10 lines · 238 bytes · Go

Last changed by

Not known.

History of this file

Take it

1//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}