Add Unveil & UnveilStrict func to unveil_other.go
This commit is contained in:
parent
6e5a88bc77
commit
bc9703246e
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue