From 7b07b81b91e2ca61c8b483f373769d2ed90eb811 Mon Sep 17 00:00:00 2001 From: remm Date: Tue, 17 Oct 2006 20:50:56 +0000 Subject: [PATCH] - Also copy the policy file. - server.xml tweaks. - Remove the minimal server.xml, which isn't that helpful anymore. git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@465044 13f79535-47bb-0310-9956-ffa450edef68 --- build.xml | 1 + conf/catalina.policy | 19 +++++-------------- conf/server-minimal.xml | 25 ------------------------- conf/server.xml | 12 +++++------- webapps/docs/security-manager-howto.xml | 6 ------ 5 files changed, 11 insertions(+), 52 deletions(-) delete mode 100644 conf/server-minimal.xml diff --git a/build.xml b/build.xml index b4551373a..d0b302291 100644 --- a/build.xml +++ b/build.xml @@ -450,6 +450,7 @@ + diff --git a/conf/catalina.policy b/conf/catalina.policy index f1638c2ca..bebf11a84 100644 --- a/conf/catalina.policy +++ b/conf/catalina.policy @@ -40,18 +40,13 @@ grant codeBase "file:${java.home}/lib/ext/-" { // ========== CATALINA CODE PERMISSIONS ======================================= -// These permissions apply to the launcher code -grant codeBase "file:${catalina.home}/bin/commons-launcher.jar" { - permission java.security.AllPermission; -}; - -// These permissions apply to the daemon code +/ These permissions apply to the daemon code grant codeBase "file:${catalina.home}/bin/commons-daemon.jar" { permission java.security.AllPermission; }; -// These permissions apply to the commons-logging API -grant codeBase "file:${catalina.home}/bin/commons-logging-api.jar" { +// These permissions apply to the logging API +grant codeBase "file:${catalina.home}/bin/tomcat-juli.jar" { permission java.security.AllPermission; }; @@ -62,16 +57,12 @@ grant codeBase "file:${catalina.home}/bin/bootstrap.jar" { // These permissions apply to the servlet API classes // and those that are shared across all class loaders -// located in the "common" directory +// located in the "lib" directory grant codeBase "file:${catalina.home}/lib/-" { permission java.security.AllPermission; }; -// The permissions granted to the balancer WEB-INF/classes and WEB-INF/lib directory -grant codeBase "file:${catalina.home}/webapps/balancer/-" { - permission java.lang.RuntimePermission "accessClassInPackage.org.apache.tomcat.util.digester"; - permission java.lang.RuntimePermission "accessClassInPackage.org.apache.tomcat.util.digester.*"; -}; + // ========== WEB APPLICATION PERMISSIONS ===================================== diff --git a/conf/server-minimal.xml b/conf/server-minimal.xml deleted file mode 100644 index 7b542b6cf..000000000 --- a/conf/server-minimal.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - - - - diff --git a/conf/server.xml b/conf/server.xml index bd2d98939..72640ddd3 100644 --- a/conf/server.xml +++ b/conf/server.xml @@ -1,4 +1,3 @@ - - - - @@ -44,7 +40,8 @@ APR (HTTP/AJP) Connector: /docs/apr.html Define a non-SSL HTTP/1.1 Connector on port 8080 --> - @@ -108,7 +106,7 @@ diff --git a/webapps/docs/security-manager-howto.xml b/webapps/docs/security-manager-howto.xml index 6447b5738..a3005faef 100644 --- a/webapps/docs/security-manager-howto.xml +++ b/webapps/docs/security-manager-howto.xml @@ -217,12 +217,6 @@ grant codeBase "file:${catalina.home}/lib/-" { permission java.security.AllPermission; }; -// The permissions granted to the balancer WEB-INF/classes and WEB-INF/lib directory -grant codeBase "file:${catalina.home}/webapps/balancer/-" { - permission java.lang.RuntimePermission "accessClassInPackage.org.apache.tomcat.util.digester"; - permission java.lang.RuntimePermission "accessClassInPackage.org.apache.tomcat.util.digester.*"; -}; - // ========== WEB APPLICATION PERMISSIONS ===================================== -- 2.11.0