Hello there!
I'm working on Landbox — Landlock "os/exec.Command()" replacement.
```go
package main
import "github.com/cnaize/landbox"
func main() {
// allow only: ro="/usr", rw="/tmp"
sandbox := landbox.NewSandbox([]string{"/usr"}, []string{"/tmp"}, nil)
defer sandbox.Close()
// deny everything else
output, _ := sandbox.Command("ls", "/home").CombinedOutput()
println(string(output))
// Executing the sandboxed command...
// ls: cannot open directory '/home': Permission denied
}
```
Github: https://github.com/cnaize/landbox
Any feedback is welcome!
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/golang-nuts/f7465b14-014a-4011-a82e-84bc537119bbn%40googlegroups.com.