groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jwagenleit...@apache.org
Subject groovy git commit: Security Test fix - add permissions required to run under indy
Date Mon, 04 Jul 2016 20:43:02 GMT
Repository: groovy
Updated Branches:
  refs/heads/master e21d6226b -> abec2cf90


Security Test fix - add permissions required to run under indy


Project: http://git-wip-us.apache.org/repos/asf/groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/abec2cf9
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/abec2cf9
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/abec2cf9

Branch: refs/heads/master
Commit: abec2cf907b4fc0fe390e29c3d1762d0205b87ff
Parents: e21d622
Author: John Wagenleitner <jwagenleitner@apache.org>
Authored: Mon Jul 4 13:39:01 2016 -0700
Committer: John Wagenleitner <jwagenleitner@apache.org>
Committed: Mon Jul 4 13:39:01 2016 -0700

----------------------------------------------------------------------
 security/groovy.policy | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/abec2cf9/security/groovy.policy
----------------------------------------------------------------------
diff --git a/security/groovy.policy b/security/groovy.policy
index 3d7d077..9dc92a7 100644
--- a/security/groovy.policy
+++ b/security/groovy.policy
@@ -150,6 +150,7 @@ grant codeBase "file:/groovy/testSupport" {
 //to grant a 'global' accessDeclaredPermission here.
 grant codeBase "file:/groovy/security/-" {
     permission java.lang.RuntimePermission "accessDeclaredMembers";
+    permission java.lang.RuntimePermission "getClassLoader";
 };
 
 grant codeBase "file:/groovy/security/testForbiddenPackage" {
@@ -198,6 +199,7 @@ grant codeBase "file:${user.dir}/src/test/groovy/ClosureMethodTest.groovy"
{
 };
 
 grant codeBase "file:${user.dir}/src/test/groovy/ClosureWithDefaultParamTest.groovy" {
+    permission java.lang.RuntimePermission "getClassLoader";
     permission java.io.FilePermission "src${/}test${/}-", "read";
 
     // Required because test calls File.eachLine which eventually invokes


Mime
View raw message