Use the special java.ext.dirs path instead of 4 tomcat heuristics

This commit is contained in:
Robert Muir 2015-05-04 17:16:08 -04:00
parent 8e8b95faeb
commit 072b90296a
1 changed files with 2 additions and 18 deletions

View File

@ -22,25 +22,9 @@
// for configured paths to these.
//// System code permissions:
//// These permissions apply to the JDK itself:
// These permissions apply to javac
grant codeBase "file:${java.home}/lib/-" {
permission java.security.AllPermission;
};
// These permissions apply to all shared system extensions
grant codeBase "file:${java.home}/jre/lib/ext/-" {
permission java.security.AllPermission;
};
// These permissions apply to javac when ${java.home] points at $JAVA_HOME/jre
grant codeBase "file:${java.home}/../lib/-" {
permission java.security.AllPermission;
};
// These permissions apply to all shared system extensions when
// ${java.home} points at $JAVA_HOME/jre
grant codeBase "file:${java.home}/lib/ext/-" {
grant codeBase "file:${{java.ext.dirs}}/*" {
permission java.security.AllPermission;
};