unveil: remove git executable and /dev/null
This commit is contained in:
parent
fa66c4faa8
commit
08c49d4dd3
5
main.go
5
main.go
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue