summaryrefslogtreecommitdiffstats
path: root/unveil_stub.go
diff options
context:
space:
mode:
authorLibravatar zak <e-zk@users.noreply.github.com>2022-12-22 00:17:33 +1000
committerLibravatar Anirudh Oppiliappan <x@icyphox.sh>2022-12-22 11:17:59 +0530
commit4aa8cbff320b669fc07f356409b05d6b1795c342 (patch)
tree71b02d6bc99ba805d728b28d70023573233ce7a4 /unveil_stub.go
parentd0f5d874c58abac60bd9145eb98c0305047c9d0f (diff)
downloadlegit-4aa8cbff320b669fc07f356409b05d6b1795c342.tar.gz
legit-4aa8cbff320b669fc07f356409b05d6b1795c342.tar.bz2
legit-4aa8cbff320b669fc07f356409b05d6b1795c342.zip
unveil: initial commit
Diffstat (limited to '')
-rw-r--r--unveil_stub.go18
1 files changed, 18 insertions, 0 deletions
diff --git a/unveil_stub.go b/unveil_stub.go
new file mode 100644
index 0000000..dc72a7d
--- /dev/null
+++ b/unveil_stub.go
@@ -0,0 +1,18 @@
+//go:build !openbsd
+// +build !openbsd
+
+// Stub functions for GOOS that don't support unix.Unveil()
+
+package main
+
+func Unveil(path string, perms string) error {
+ return nil
+}
+
+func UnveilBlock() error {
+ return nil
+}
+
+func UnveilPaths(paths []string, perms string) error {
+ return nil
+}