summary refs log tree commit diff stats
path: root/pledge.go
diff options
context:
space:
mode:
Diffstat (limited to 'pledge.go')
-rw-r--r--pledge.go20
1 files changed, 20 insertions, 0 deletions
diff --git a/pledge.go b/pledge.go
new file mode 100644
index 0000000..a49fa4f
--- /dev/null
+++ b/pledge.go
@@ -0,0 +1,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)
+}