diff options
| author | Andrey Artemiev <artemiev@google.com> | 2022-07-12 17:06:16 -0700 |
|---|---|---|
| committer | Aleksandr Nogikh <wp32pw@gmail.com> | 2022-07-19 19:37:54 +0200 |
| commit | 775344bcdc412431da5fa825b1012f0290fc8064 (patch) | |
| tree | 3f039e7c24f2242b354f65dc22b4b9e022a27423 /pkg/csource/csource.go | |
| parent | 72a3cc0c8dfd0116bb3ecf36eb5983ec3cae691c (diff) | |
executor: added code to run Android with System account
Diffstat (limited to 'pkg/csource/csource.go')
| -rw-r--r-- | pkg/csource/csource.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pkg/csource/csource.go b/pkg/csource/csource.go index 55e52347c..7d3b133bf 100644 --- a/pkg/csource/csource.go +++ b/pkg/csource/csource.go @@ -96,7 +96,11 @@ func (ctx *context) generateSource() ([]byte, error) { sandboxFunc := "loop();" if ctx.opts.Sandbox != "" { - sandboxFunc = "do_sandbox_" + ctx.opts.Sandbox + "();" + arguments := "();" + if ctx.opts.Sandbox == "android" { + arguments = "(0);" + } + sandboxFunc = "do_sandbox_" + ctx.opts.Sandbox + arguments } replacements := map[string]string{ "PROCS": fmt.Sprint(ctx.opts.Procs), |
