From 4aa8cbff320b669fc07f356409b05d6b1795c342 Mon Sep 17 00:00:00 2001 From: zak Date: Thu, 22 Dec 2022 00:17:33 +1000 Subject: unveil: initial commit --- unveil_stub.go | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 unveil_stub.go (limited to 'unveil_stub.go') 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 +} -- cgit