unveil: log each call
This commit is contained in:
parent
4aa8cbff32
commit
8c129f8889
1 changed files with 3 additions and 0 deletions
|
@ -5,13 +5,16 @@ package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"golang.org/x/sys/unix"
|
"golang.org/x/sys/unix"
|
||||||
|
"log"
|
||||||
)
|
)
|
||||||
|
|
||||||
func Unveil(path string, perms string) error {
|
func Unveil(path string, perms string) error {
|
||||||
|
log.Printf("unveil: \"%s\", %s", path, perms)
|
||||||
return unix.Unveil(path, perms)
|
return unix.Unveil(path, perms)
|
||||||
}
|
}
|
||||||
|
|
||||||
func UnveilBlock() error {
|
func UnveilBlock() error {
|
||||||
|
log.Printf("unveil: block")
|
||||||
return unix.UnveilBlock()
|
return unix.UnveilBlock()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue