Update in-document copy of the default catalina.policy file
authorkkolinko <kkolinko@13f79535-47bb-0310-9956-ffa450edef68>
Sat, 5 Jun 2010 00:21:53 +0000 (00:21 +0000)
committerkkolinko <kkolinko@13f79535-47bb-0310-9956-ffa450edef68>
Sat, 5 Jun 2010 00:21:53 +0000 (00:21 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@951621 13f79535-47bb-0310-9956-ffa450edef68

webapps/docs/security-manager-howto.xml

index eb8787b..5d2bad5 100644 (file)
@@ -269,6 +269,13 @@ grant codeBase "file:${catalina.home}/lib/-" {
 };
 
 
+// If using a per instance lib directory, i.e. ${catalina.base}/lib,
+// then the following permission will need to be uncommented
+// grant codeBase "file:${catalina.base}/lib/-" {
+//         permission java.security.AllPermission;
+// };
+
+
 // ========== WEB APPLICATION PERMISSIONS =====================================
 
 
@@ -327,6 +334,14 @@ grant {
     permission java.util.PropertyPermission
      "org.apache.el.parser.COERCE_TO_ZERO", "read";
 
+    // The cookie code needs these.
+    permission java.util.PropertyPermission
+     "org.apache.catalina.STRICT_SERVLET_COMPLIANCE", "read";
+    permission java.util.PropertyPermission
+     "org.apache.tomcat.util.http.ServerCookie.STRICT_NAMING", "read";
+    permission java.util.PropertyPermission
+     "org.apache.tomcat.util.http.ServerCookie.FWD_SLASH_IS_SEPARATOR", "read";
+
     // Applications using Comet need to be able to access this package
     permission java.lang.RuntimePermission "accessClassInPackage.org.apache.catalina.comet";
 };