tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gl...@locus.apache.org
Subject cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/context PolicyInterceptor.java
Date Thu, 28 Dec 2000 22:12:12 GMT
glenn       00/12/28 14:12:11

  Modified:    src/share/org/apache/tomcat/context Tag: tomcat_32
                        PolicyInterceptor.java
  Log:
  Updated for default permissions, fix windows default FilePermission
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.3.2.1   +10 -2     jakarta-tomcat/src/share/org/apache/tomcat/context/PolicyInterceptor.java
  
  Index: PolicyInterceptor.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/context/PolicyInterceptor.java,v
  retrieving revision 1.3
  retrieving revision 1.3.2.1
  diff -u -r1.3 -r1.3.2.1
  --- PolicyInterceptor.java	2000/06/23 02:16:18	1.3
  +++ PolicyInterceptor.java	2000/12/28 22:12:11	1.3.2.1
  @@ -123,10 +123,18 @@
       {
   	// Add default read "-" FilePermission for docBase, classes, lib
   	// Default per context permissions
  -	FilePermission fp = new FilePermission(base + "/-", "read");
  +	FilePermission fp = new FilePermission(base + File.separator + "-", "read");
   	if( fp != null )
   	    p.add((Permission)fp);
  -	
  +	PropertyPermission pp = new PropertyPermission("line.separator", "read");
  +	if( pp != null )
  +	    p.add((Permission)pp);
  +	pp = new PropertyPermission("file.separator", "read");
  +	if( pp != null )
  +	    p.add((Permission)pp);
  +	pp = new PropertyPermission("path.separator", "read");
  +	if( pp != null )
  +	    p.add((Permission)pp);
       }
       
       public void contextInit( Context context)
  
  
  

Mime
View raw message