return error from UnveilBlock
This commit is contained in:
parent
ffecf00f19
commit
d34a7e252f
@ -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.
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user