Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save gdestuynder/76778161e861ea0d8b91d6ac13352fe1 to your computer and use it in GitHub Desktop.
Save gdestuynder/76778161e861ea0d8b91d6ac13352fe1 to your computer and use it in GitHub Desktop.
~/git/mig (sandbox-kang) ⚡ git diff sandbox-kang..sandbox-mwos modules/scribe/
diff --git a/modules/scribe/scribe.go b/modules/scribe/scribe.go
index 81b2cef..d59365e 100644
--- a/modules/scribe/scribe.go
+++ b/modules/scribe/scribe.go
@@ -16,6 +16,7 @@ import (
"strconv"
"time"
+ "github.com/mozilla/mig-sandbox"
scribelib "github.com/mozilla/scribe"
"mig.ninja/mig/modules"
"mig.ninja/mig/modules/file"
@@ -37,14 +38,24 @@ func endCounters() {
}
type module struct {
+ SandboxProfile sandbox.SandboxProfile
}
func (m *module) NewRun() modules.Runner {
return new(run)
}
+func (m *module) GetSandboxProfile() sandbox.SandboxProfile {
+ return m.SandboxProfile
+}
+
func init() {
- modules.Register("scribe", new(module))
+ m := new(module)
+ sandbox := sandbox.SandboxProfile{
+ DefaultPolicy: sandbox.ActAllow,
+ }
+ m.SandboxProfile = sandbox
+ modules.Register("scribe", m)
}
type run struct {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment