summary refs log tree commit diff stats
path: root/pledge.go
blob: a49fa4fdafa0197c878c07803a7dd11ac2c2ff60 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// +build openbsd

package lynx

import "golang.org/x/sys/unix"

// Pledge is just a wrapper to unix.Pledge.
func Pledge(promises, execpromises string) error {
	return unix.Pledge(promises, execpromises)
}

// PledgePromises is just a wrapper to unix.PledgePromises.
func PledgePromises(promises string) error {
	return unix.PledgePromises(promises)
}

// PledgeExecpromises is just a wrapper to unix.PledgeExecpromises.
func PledgeExecpromises(execpromises string) error {
	return unix.PledgeExecpromises(execpromises)
}