mirror of https://github.com/apache/lucene.git
SOLR-14064: remove some hadoop brain damage from build environment
Some permissions and build hacks were made on behalf of hadoop: hacks on top of hacks. Now that the major problems such as classpath pollution and hadoop test code are fixed, so we can remove hacks built on top of them.
This commit is contained in:
parent
9717540b8e
commit
1761e48e53
|
@ -1174,7 +1174,6 @@
|
|||
|
||||
<!-- Restrict access to certain Java features and install security manager: -->
|
||||
<sysproperty key="common.dir" file="${common.dir}" />
|
||||
<sysproperty key="ant.library.dir" file="${ant.library.dir}" />
|
||||
<sysproperty key="clover.db.dir" file="${clover.db.dir}" />
|
||||
<syspropertyset>
|
||||
<propertyref prefix="java.security.manager"/>
|
||||
|
|
|
@ -34,15 +34,8 @@ grant {
|
|||
permission java.io.FilePermission "${clover.db.dir}${/}-", "read,write,delete";
|
||||
permission java.io.FilePermission "${tests.linedocsfile}", "read";
|
||||
// hadoop
|
||||
permission java.io.FilePermission "${ant.library.dir}${/}-", "read";
|
||||
permission java.io.FilePermission "${user.home}${/}.ant${/}lib${/}-", "read";
|
||||
permission java.io.FilePermission "${user.home}${/}hadoop-metrics2.properties", "read";
|
||||
permission java.io.FilePermission "${user.home}${/}hadoop-metrics2-namenode.properties", "read";
|
||||
// kerberos
|
||||
permission java.io.FilePermission "${user.home}${/}.java.login.config", "read";
|
||||
// SolrTestCaseJ4 explicitly uses these
|
||||
permission java.io.FilePermission "/dev/./urandom", "read";
|
||||
permission java.io.FilePermission "/dev/random", "read";
|
||||
// DirectoryFactoryTest messes with these (wtf?)
|
||||
permission java.io.FilePermission "/tmp/inst1/conf/solrcore.properties", "read";
|
||||
permission java.io.FilePermission "/path/to/myinst/conf/solrcore.properties", "read";
|
||||
|
|
Loading…
Reference in New Issue