Add Unveil & UnveilStrict func to unveil_other.go

This commit is contained in:
Andinus 2020-04-15 19:26:10 +05:30
parent 6e5a88bc77
commit bc9703246e
Signed by: andinus
GPG Key ID: B67D55D482A799FD
1 changed files with 16 additions and 2 deletions

View File

@ -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
}