summary refs log tree commit diff stats
path: root/unveil_other.go
diff options
context:
space:
mode:
Diffstat (limited to 'unveil_other.go')
-rw-r--r--unveil_other.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/unveil_other.go b/unveil_other.go
new file mode 100644
index 0000000..a0273c9
--- /dev/null
+++ b/unveil_other.go
@@ -0,0 +1,15 @@
+// +build !openbsd
+
+package lynx
+
+// UnveilPath takes a path, permission & unveils it, it does nothing
+// on non OpenBSD systems.
+func UnveilPath(_ string, _ string) error {
+	return nil
+}
+
+// UnveilPathStrict is just a wrapper around unix.Unveil. It does
+// nothing on non OpenBSD systems.
+func UnveilPathStrict(_ string, _ string) error {
+	return nil
+}