rmuir commented on a change in pull request #119:
URL: https://github.com/apache/lucene/pull/119#discussion_r624457772



##########
File path: gradle/testing/randomization/policies/tests.policy
##########
@@ -104,9 +104,16 @@ grant {
   permission java.io.FilePermission "${user.home}${/}.ivy2${/}cache${/}-", 
"read";
   permission java.io.FilePermission "${junit4.tempDir}${/}*", 
"read,write,delete";
   permission java.io.FilePermission "${clover.db.dir}${/}-", 
"read,write,delete";
-  permission java.io.FilePermission "${junit4.childvm.cwd}${/}jacoco.db", 
"write";
+};
+
+// Permissions for jacoco code coverage
+grant {

Review comment:
       It can work to apply permissions to jars, but only if they invoke the 
privileged methods using `AccessController.doPrivileged` (possibly checking 
their own custom permission first or something).
   
   Given that it seems openjdk plans to deprecate SecurityManager 
(https://openjdk.java.net/jeps/411), I wouldn't optimize our current setup any 
more?




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to