Skip to content

Commit bfe2c17

Browse files
committed
Issue scalatron#51: Allow RuntimePermission#accessDeclaredMembers in the PluginSecurityManager as it's required for Enumerations and seems to be safe for a plugin to call.
1 parent 9ca584d commit bfe2c17

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Scalatron/src/scalatron/scalatron/impl/ExecutionContextForUntrustedCode.scala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,10 @@ object ExecutionContextForUntrustedCode
112112
// System.err.println("warning: granting permission to untrusted code: '%s'".format(permission))
113113
return // granted
114114

115+
case "accessDeclaredMembers" =>
116+
// this is triggered by Enumeration$$populateNameMap
117+
return // granted
118+
115119
case _ => // denied
116120
}
117121

0 commit comments

Comments
 (0)