diff --git a/lucene/tools/junit4/solr-tests.policy b/lucene/tools/junit4/solr-tests.policy index 6f03b0f2ceb..9c8a39f9a1f 100644 --- a/lucene/tools/junit4/solr-tests.policy +++ b/lucene/tools/junit4/solr-tests.policy @@ -32,6 +32,7 @@ grant { permission java.io.FilePermission "${junit4.childvm.cwd}${/}jacoco.db", "write"; permission java.io.FilePermission "${junit4.tempDir}${/}*", "read,execute,write,delete"; permission java.io.FilePermission "${clover.db.dir}${/}-", "read,execute,write,delete"; + permission java.io.FilePermission "${tests.linedocsfile}", "read"; // all possibilities of accepting/binding connections on localhost with ports >=1024: permission java.net.SocketPermission "localhost:1024-", "accept,listen"; diff --git a/lucene/tools/junit4/tests.policy b/lucene/tools/junit4/tests.policy index 2a623b70cea..2dde5c6f329 100644 --- a/lucene/tools/junit4/tests.policy +++ b/lucene/tools/junit4/tests.policy @@ -34,6 +34,7 @@ grant { permission java.io.FilePermission "${junit4.childvm.cwd}${/}jacoco.db", "write"; permission java.io.FilePermission "${junit4.tempDir}${/}*", "read,write,delete"; permission java.io.FilePermission "${clover.db.dir}${/}-", "read,write,delete"; + permission java.io.FilePermission "${tests.linedocsfile}", "read"; // misc HardlinkCopyDirectoryWrapper needs this to test if hardlinks can be created permission java.nio.file.LinkPermission "hard";