return error from UnveilBlock

This commit is contained in:
Aaron Bieber 2020-05-08 07:38:58 -06:00
parent ffecf00f19
commit d34a7e252f
2 changed files with 3 additions and 3 deletions

View File

@ -25,7 +25,7 @@ func Unveil(path string, flags string) {}
// processes filesystem view.
//
// On non-OpenBSD machines this call is a noop.
func UnveilBlock() {}
func UnveilBlock() error {}
// Pledge wraps OpenBSD's pledge(2) system call. One can use this to limit
// the system calls a process can make.

View File

@ -31,8 +31,8 @@ func Unveil(path string, flags string) {
// processes filesystem view.
//
// On non-OpenBSD machines this call is a noop.
func UnveilBlock() {
unix.UnveilBlock()
func UnveilBlock() error {
return unix.UnveilBlock()
}
// Pledge wraps OpenBSD's pledge(2) system call. One can use this to limit