unveil: log each call

This commit is contained in:
zak 2022-12-22 00:22:08 +10:00 committed by Anirudh Oppiliappan
parent 4aa8cbff32
commit 8c129f8889
1 changed files with 3 additions and 0 deletions

View File

@ -5,13 +5,16 @@ package main
import (
"golang.org/x/sys/unix"
"log"
)
func Unveil(path string, perms string) error {
log.Printf("unveil: \"%s\", %s", path, perms)
return unix.Unveil(path, perms)
}
func UnveilBlock() error {
log.Printf("unveil: block")
return unix.UnveilBlock()
}