added pledge and unveil support

This commit is contained in:
ston1th 2018-10-26 16:52:08 +02:00
commit 089d8d16c8
8 changed files with 116 additions and 15 deletions

11
unveil.go Normal file
View file

@ -0,0 +1,11 @@
// Copyright (C) 2018 Marius Schellenberger
// +build !openbsd
package godrop
// Unveil is currently only supported on OpenBSD.
func Unveil(path, flags string) error { return nil }
// UnveilBlock is currently only supported on OpenBSD.
func UnveilBlock() error { return nil }