summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar zak <e-zk@users.noreply.github.com>2022-12-22 00:22:08 +1000
committerLibravatar Anirudh Oppiliappan <x@icyphox.sh>2022-12-22 11:17:59 +0530
commit8c129f888984261fd9d02d9fb202369ff9a0af6a (patch)
tree6903c545b1041f708defd33df39f4da2c421be80
parent4aa8cbff320b669fc07f356409b05d6b1795c342 (diff)
downloadlegit-8c129f888984261fd9d02d9fb202369ff9a0af6a.tar.gz
legit-8c129f888984261fd9d02d9fb202369ff9a0af6a.tar.bz2
legit-8c129f888984261fd9d02d9fb202369ff9a0af6a.zip
unveil: log each call
Diffstat (limited to '')
-rw-r--r--unveil.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/unveil.go b/unveil.go
index 99b6629..9fe5e10 100644
--- a/unveil.go
+++ b/unveil.go
@@ -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()
}