You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by gb...@apache.org on 2012/09/05 09:46:47 UTC

svn commit: r1381046 - /lucene/dev/branches/branch_4x/lucene/tools/junit4/tests.policy

Author: gbowyer
Date: Wed Sep  5 07:46:47 2012
New Revision: 1381046

URL: http://svn.apache.org/viewvc?rev=1381046&view=rev
Log:
Tighten parts of the security policy for tests

Modified:
    lucene/dev/branches/branch_4x/lucene/tools/junit4/tests.policy

Modified: lucene/dev/branches/branch_4x/lucene/tools/junit4/tests.policy
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/lucene/tools/junit4/tests.policy?rev=1381046&r1=1381045&r2=1381046&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/lucene/tools/junit4/tests.policy (original)
+++ lucene/dev/branches/branch_4x/lucene/tools/junit4/tests.policy Wed Sep  5 07:46:47 2012
@@ -46,9 +46,6 @@ grant {
   permission java.lang.reflect.ReflectPermission "*";
   permission java.lang.RuntimePermission "*";
 
-  // Needed for some things in DNS caching in the JVM
-  permission java.security.SecurityPermission "*", "read,write";
-
   // These two *have* to be spelled out a seperate
   permission java.lang.management.ManagementPermission "control";
   permission java.lang.management.ManagementPermission "monitor";
@@ -63,4 +60,9 @@ grant {
   // TIKA uses BouncyCastle and that registers new provider for PDF parsing + MSOffice parsing. Maybe report as bug!
   permission java.security.SecurityPermission "putProviderProperty.BC";
   permission java.security.SecurityPermission "insertProvider.BC";
+
+  // Needed for some things in DNS caching in the JVM
+  permission java.security.SecurityPermission "getProperty.networkaddress.cache.ttl";
+  permission java.security.SecurityPermission "getProperty.networkaddress.cache.negative.ttl";
+
 };