diff options
author | Anirudh Oppiliappan <x@icyphox.sh> | 2022-12-22 11:22:47 +0530 |
---|---|---|
committer | Anirudh Oppiliappan <x@icyphox.sh> | 2022-12-22 11:35:32 +0530 |
commit | 6e6648e344c889767240a33f42febf9498250131 (patch) | |
tree | 1f9ac5de46ecf7f535c843011e18730267630614 /main.go | |
parent | 0ed4b29fe0aa3e93557569c6f803eafc5e228a37 (diff) | |
download | legit-6e6648e344c889767240a33f42febf9498250131.tar.gz legit-6e6648e344c889767240a33f42febf9498250131.tar.bz2 legit-6e6648e344c889767240a33f42febf9498250131.zip |
unveil: add git executable
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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) |