tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gl...@apache.org
Subject cvs commit: jakarta-tomcat-4.0/catalina/src/conf catalina.policy
Date Wed, 11 Apr 2001 21:32:50 GMT
glenn       01/04/11 14:32:50

  Modified:    catalina/src/conf catalina.policy
  Log:
  Update policy to support JNDI
  
  Revision  Changes    Path
  1.9       +23 -5     jakarta-tomcat-4.0/catalina/src/conf/catalina.policy
  
  Index: catalina.policy
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-4.0/catalina/src/conf/catalina.policy,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- catalina.policy	2001/04/09 00:23:32	1.8
  +++ catalina.policy	2001/04/11 21:32:50	1.9
  @@ -8,7 +8,7 @@
   //
   // * Read access to the document root directory
   //
  -// $Id: catalina.policy,v 1.8 2001/04/09 00:23:32 craigmcc Exp $
  +// $Id: catalina.policy,v 1.9 2001/04/11 21:32:50 glenn Exp $
   // ============================================================================
   
   
  @@ -83,10 +83,13 @@
   // In addition, a web application will be given a read FilePermission
   // for all files and directories in its document root.
   grant { 
  -	permission java.util.PropertyPermission "java.version", "read";
  -	permission java.util.PropertyPermission "java.vendor", "read";
  -	permission java.util.PropertyPermission "java.vendor.url", "read";
  -	permission java.util.PropertyPermission "java.class.version", "read";
  +        // Required for JNDI lookup of named JDBC DataSource's and
  +        // javamail named MimePart DataSource used to send mail
  +        permission java.utim.PropertyPermission "java.home", "read";
  +        permission java.util.PropertyPermission "java.naming.*", "read";
  +        permission java.util.PropertyPermission "javax.sql.*", "read";
  +
  +        // OS Specific properties to allow read access
   	permission java.util.PropertyPermission "os.name", "read";
   	permission java.util.PropertyPermission "os.version", "read";
   	permission java.util.PropertyPermission "os.arch", "read";
  @@ -94,6 +97,11 @@
   	permission java.util.PropertyPermission "path.separator", "read";
   	permission java.util.PropertyPermission "line.separator", "read";
   
  +        // JVM properties to allow read access
  +        permission java.util.PropertyPermission "java.version", "read";
  +        permission java.util.PropertyPermission "java.vendor", "read";
  +        permission java.util.PropertyPermission "java.vendor.url", "read";
  +        permission java.util.PropertyPermission "java.class.version", "read";
   	permission java.util.PropertyPermission "java.specification.version", "read";
   	permission java.util.PropertyPermission "java.specification.vendor", "read";
   	permission java.util.PropertyPermission "java.specification.name", "read";
  @@ -104,6 +112,16 @@
   	permission java.util.PropertyPermission "java.vm.version", "read";
   	permission java.util.PropertyPermission "java.vm.vendor", "read";
   	permission java.util.PropertyPermission "java.vm.name", "read";
  +
  +        // Required for reading resources using JNDI lookup
  +        permission java.io.FilePermission "jndi:/-", "read";
  +        permission java.io.FilePermission "jar:jndi:/WEB-INF/lib/-", "read";
  +        // Required for getting BeanInfo
  +        permission java.lang.RuntimePermission "accessClassInPackage.sun.beans.*";
  +        // Requried for sending email
  +        permission java.io.FilePermission "${java.home}${/}lib${/}ext${/}mail.jar", "read";
  +
  +	// Allow read of JAXP compliant XML parser debug
   	permission java.util.PropertyPermission "jaxp.debug", "read";
   };
   
  
  
  

Mime
View raw message