From 6e6648e344c889767240a33f42febf9498250131 Mon Sep 17 00:00:00 2001 From: Anirudh Oppiliappan Date: Thu, 22 Dec 2022 11:22:47 +0530 Subject: unveil: add git executable --- main.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'main.go') diff --git a/main.go b/main.go index 60112d8..628925a 100644 --- a/main.go +++ b/main.go @@ -23,11 +23,16 @@ func main() { 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) + } + mux := routes.Handlers(c) addr := fmt.Sprintf("%s:%d", c.Server.Host, c.Server.Port) log.Println("starting server on", addr) -- cgit