unveil: add git executable
6e6648e344c889767240a33f42febf9498250131
0ed4b29fe0aa3e93557569c6f803eafc5e228a37
@@ -23,8 +23,13 @@ if err := UnveilPaths([]string{ c.Dirs.Static, c.Repo.ScanPath, - c.Dirs.Templates}, + c.Dirs.Templates, + }, "r"); err != nil { + log.Fatalf("unveil: %s", err) + } + + if err := Unveil("/usr/local/bin/git", "rx"); err != nil { log.Fatalf("unveil: %s", err) }
@@ -23,8 +23,13 @@
@@ -20,8 +20,7 @@ } func UnveilPaths(paths []string, perms string) error { for _, path := range paths { - err := Unveil(path, perms) - if err != nil { + if err := Unveil(path, perms); err != nil { return err } }
@@ -20,8 +20,7 @@ }