unveil: remove git executable and /dev/null

This commit is contained in:
Anirudh Oppiliappan 2022-12-24 15:05:04 +05:30
parent fa66c4faa8
commit 08c49d4dd3
No known key found for this signature in database
GPG key ID: 8A93F96F78C5D4C4

View file

@ -20,12 +20,7 @@ func main() {
log.Fatal(err) log.Fatal(err)
} }
if err := Unveil("/usr/local/bin/git", "rx"); err != nil {
log.Fatalf("unveil: %s", err)
}
if err := UnveilPaths([]string{ if err := UnveilPaths([]string{
"/dev/null",
c.Dirs.Static, c.Dirs.Static,
c.Repo.ScanPath, c.Repo.ScanPath,
c.Dirs.Templates, c.Dirs.Templates,