You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by jw...@apache.org on 2016/07/04 20:43:02 UTC
groovy git commit: Security Test fix - add permissions required to
run under indy
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 <jw...@apache.org>
Authored: Mon Jul 4 13:39:01 2016 -0700
Committer: John Wagenleitner <jw...@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