Created
May 11, 2016 22:57
-
-
Save gdestuynder/76778161e861ea0d8b91d6ac13352fe1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/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