1
0
mirror of https://github.com/golang/go synced 2024-09-30 22:58:34 -06:00
go/playground
Robert Daniel Kortschak 84fae1b215 go.tools/playground: provide script-safe option for playground
This change allows code to be sent safely to a partially sandboxed playground using the Native Client environment.

Execution of non-Go code is blocked when the RunScripts is false to prevent inclusion of code that might escape by virtue of being under a different runtime environment.

Two options for communicating whether to prevent non-Go code were considered: as has been done here and alternatively, using a message field. The latter was not chosen to close that as an attack option.

Another will be follow that adds a -nacl flag to the present command to allow sandboxing of playground code in presentations.

See discussion here: https://groups.google.com/d/topic/golang-dev/Hy-7PBP-T4Q/

LGTM=adg
R=adg, dave
CC=golang-codereviews
https://golang.org/cl/74740045
2014-03-17 16:57:36 +11:00
..
socket go.tools/playground: provide script-safe option for playground 2014-03-17 16:57:36 +11:00
appengine.go go.tools: move playground to repo root 2013-09-19 10:45:22 +10:00
common.go go.tools: move playground to repo root 2013-09-19 10:45:22 +10:00
local.go go.tools: move playground to repo root 2013-09-19 10:45:22 +10:00