Return-Path: Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 5582 invoked by uid 500); 28 Dec 2000 22:11:02 -0000 Delivered-To: apmail-jakarta-tomcat-cvs@apache.org Received: (qmail 5579 invoked by uid 1004); 28 Dec 2000 22:11:02 -0000 Date: 28 Dec 2000 22:11:01 -0000 Message-ID: <20001228221101.5578.qmail@locus.apache.org> From: glenn@locus.apache.org To: jakarta-tomcat-cvs@apache.org Subject: cvs commit: jakarta-tomcat/src/etc tomcat.policy glenn 00/12/28 14:11:01 Modified: src/etc Tag: tomcat_32 tomcat.policy Log: Updated for default permissions Revision Changes Path No revision No revision 1.5.2.1 +7 -6 jakarta-tomcat/src/etc/tomcat.policy Index: tomcat.policy =================================================================== RCS file: /home/cvs/jakarta-tomcat/src/etc/tomcat.policy,v retrieving revision 1.5 retrieving revision 1.5.2.1 diff -u -r1.5 -r1.5.2.1 --- tomcat.policy 2000/06/15 18:49:52 1.5 +++ tomcat.policy 2000/12/28 22:11:00 1.5.2.1 @@ -1,4 +1,4 @@ -// Additional permissions for tomcat. +// Permissions for tomcat. // javac grant codeBase "file:${java.home}/../lib/-" { @@ -14,11 +14,12 @@ permission java.security.AllPermission; }; -// Example webapp policy -// By default we grant read access on webapp dir and -// write in workdir +// Example webapp policy +// By default Tomcat grants read access on webapp dir and read of the +// line.separator, path.separator, and file.separator PropertyPermissions. +// Any permissions you grant here are in addition to the default. grant codeBase "file:${tomcat.home}/webapps/examples" { - permission java.net.SocketPermission "localhost:1024-", "listen"; - permission java.util.PropertyPermission "*", "read"; + // Allow the example web application to read all java properties + permission java.util.ProperyPermission "*", "read"; };