diff --git a/batik-svgbrowser/src/main/resources/org/apache/batik/apps/svgbrowser/resources/svgbrowser.policy b/batik-svgbrowser/src/main/resources/org/apache/batik/apps/svgbrowser/resources/svgbrowser.policy index 607c3d0..5fa1de7 100644 --- a/batik-svgbrowser/src/main/resources/org/apache/batik/apps/svgbrowser/resources/svgbrowser.policy +++ b/batik-svgbrowser/src/main/resources/org/apache/batik/apps/svgbrowser/resources/svgbrowser.policy @@ -18,19 +18,19 @@ // $Id: svgbrowser.policy 1855026 2019-03-08 09:57:56Z ssteiner $ // ----------------------------------------------------------------------------- -grant codeBase "${app.jar.base}/xml-apis-ext-${xmlapis.version}.jar" { +grant codeBase "file:/usr/share/java/xml-apis-ext.jar" { permission java.security.AllPermission; }; -grant codeBase "${app.jar.base}/xml-apis-${xmlapis.version}.jar" { +grant codeBase "file:/usr/share/java/xml-apis.jar" { permission java.security.AllPermission; }; -grant codeBase "${app.jar.base}/xalan-${xalan.version}.jar" { +grant codeBase "file:/usr/share/java/xalan2.jar" { permission java.security.AllPermission; }; -grant codeBase "${app.jar.base}/xercesImpl-2.9.1.jar" { +grant codeBase "file:/usr/share/java/xercesImpl.jar" { permission java.security.AllPermission; }; @@ -98,11 +98,11 @@ grant codeBase "${app.jar.base}/batik-xml-${version}.jar" { permission java.security.AllPermission; }; -grant codeBase "${app.jar.base}/fop-transcoder-allinone-${xmlgraphics.commons.version}.jar" { +grant codeBase "file:/usr/share/java/fop-transcoder-allinone.jar" { permission java.security.AllPermission; }; -grant codeBase "${app.jar.base}/xmlgraphics-commons-${xmlgraphics.commons.version}.jar" { +grant codeBase "file:/usr/share/java/xmlgraphics-commons.jar" { permission java.security.AllPermission; }; @@ -126,7 +126,7 @@ grant codeBase "${app.jar.base}/batik-svgbrowser-${version}.jar" { permission java.security.AllPermission; }; -grant codeBase "${app.jar.base}/js.jar" { +grant codeBase "file:/usr/share/java/js.jar" { permission java.lang.RuntimePermission "createClassLoader"; permission java.net.SocketPermission "*", "listen, connect, resolve, accept"; permission java.lang.RuntimePermission "accessDeclaredMembers"; diff --git a/batik-svgrasterizer/src/main/resources/org/apache/batik/apps/rasterizer/resources/rasterizer.policy b/batik-svgrasterizer/src/main/resources/org/apache/batik/apps/rasterizer/resources/rasterizer.policy index 7c3fb9a..2236011 100644 --- a/batik-svgrasterizer/src/main/resources/org/apache/batik/apps/rasterizer/resources/rasterizer.policy +++ b/batik-svgrasterizer/src/main/resources/org/apache/batik/apps/rasterizer/resources/rasterizer.policy @@ -18,27 +18,27 @@ // $Id: rasterizer.policy 1855026 2019-03-08 09:57:56Z ssteiner $ // ----------------------------------------------------------------------------- -grant codeBase "${app.dev.base}/classes/" { +grant codeBase "file:/usr/share/java/batik-all.jar" { permission java.security.AllPermission; }; -grant codeBase "${app.dev.base}/lib/xml-apis-dom3.jar" { +grant codeBase "file:/usr/share/java/xml-apis-dom3.jar" { permission java.security.AllPermission; }; -grant codeBase "${app.dev.base}/lib/xerces_2_5_0.jar" { +grant codeBase "file:/usr/share/java/xercesImpl.jar" { permission java.security.AllPermission; }; -grant codeBase "${app.dev.base}/lib/fop-transcoder-allinone-${xmlgraphics.commons.version}.jar" { +grant codeBase "file:/usr/share/java/fop-transcoder-allinone.jar" { permission java.security.AllPermission; }; -grant codeBase "${app.dev.base}/lib/xmlgraphics-commons-${xmlgraphics.commons.version}.jar" { +grant codeBase "file:/usr/share/java/xmlgraphics-commons.jar" { permission java.security.AllPermission; }; -grant codeBase "${app.dev.base}/lib/js.jar" { +grant codeBase "file:/usr/share/java/js.jar" { permission java.lang.RuntimePermission "createClassLoader"; permission java.net.SocketPermission "*", "listen, connect, resolve, accept"; permission java.lang.RuntimePermission "accessDeclaredMembers";