From bc9703246e571c39f9cdb2739b7a4b54ebf4bad2 Mon Sep 17 00:00:00 2001 From: Andinus Date: Wed, 15 Apr 2020 19:26:10 +0530 Subject: Add Unveil & UnveilStrict func to unveil_other.go --- unveil_other.go | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/unveil_other.go b/unveil_other.go index a0273c9..1131c31 100644 --- a/unveil_other.go +++ b/unveil_other.go @@ -2,14 +2,28 @@ package lynx -// UnveilPath takes a path, permission & unveils it, it does nothing +// Unveil takes a path, permission & unveils it, it does nothing // on non OpenBSD systems. +func Unveil(_ string, _ string) error { + return nil +} + +// UnveilPath takes a path, permission & unveils it, it does nothing +// on non OpenBSD systems. Unveil should be used instead of +// UnveilPath. func UnveilPath(_ string, _ string) error { return nil } -// UnveilPathStrict is just a wrapper around unix.Unveil. It does +// UnveilStrict is just a wrapper around unix.Unveil. It does // nothing on non OpenBSD systems. +func UnveilStrict(_ string, _ string) error { + return nil +} + +// UnveilPathStrict is just a wrapper around unix.Unveil. It does +// nothing on non OpenBSD systems. UnveilStrict should be used instead +// of UnveilPathStrict. func UnveilPathStrict(_ string, _ string) error { return nil } -- cgit 1.4.1-2-gfad0