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

14
pledge.go Normal file
View file

@ -0,0 +1,14 @@
// Copyright (C) 2018 Marius Schellenberger
// +build !openbsd
package godrop
// Pledge is currently only supported on OpenBSD.
func Pledge(promises, execpromises string) error { return nil }
// PledgePromises is currently only supported on OpenBSD.
func PledgePromises(promises string) error { return nil }
// PledgeExecPromises is currently only supported on OpenBSD.
func PledgeExecpromises(execpromises string) error { return nil }