db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r374798 - in /db/derby/docs/trunk/src: adminguide/tadminnetservrun.dita devguide/rdevcsecure871406.dita devguide/rdevcsecure871422.dita devguide/rdevcsecure871439.dita
Date Sat, 04 Feb 2006 00:49:51 GMT
Author: jta
Date: Fri Feb  3 16:49:49 2006
New Revision: 374798

URL: http://svn.apache.org/viewcvs?rev=374798&view=rev
Log:
DERBY-701 Applied Eric Radzinski's patch that fixes the Java 2 security
policy file examples in the Developer's Guide and the Server & Admin Guide.

Modified:
    db/derby/docs/trunk/src/adminguide/tadminnetservrun.dita
    db/derby/docs/trunk/src/devguide/rdevcsecure871406.dita
    db/derby/docs/trunk/src/devguide/rdevcsecure871422.dita
    db/derby/docs/trunk/src/devguide/rdevcsecure871439.dita

Modified: db/derby/docs/trunk/src/adminguide/tadminnetservrun.dita
URL: http://svn.apache.org/viewcvs/db/derby/docs/trunk/src/adminguide/tadminnetservrun.dita?rev=374798&r1=374797&r2=374798&view=diff
==============================================================================
--- db/derby/docs/trunk/src/adminguide/tadminnetservrun.dita (original)
+++ db/derby/docs/trunk/src/adminguide/tadminnetservrun.dita Fri Feb  3 16:49:49 2006
@@ -1,4 +1,5 @@
 <?xml version="1.0" encoding="utf-8"?>
+
 <!DOCTYPE task PUBLIC "-//IBM//DTD DITA Task//EN"
  "../dtd/task.dtd">
 <!-- 
@@ -33,6 +34,7 @@
 grant codeBase "file:d:/<ph conref="adminconrefs.dita#prod/productlowercase"></ph>/lib/-"
{
 permission java.io.FilePermission "${derby.system.home}${/}-", 
 	"read, write, delete";
+permission java.io.FilePermission "${derby.system.home}","read";
 permission java.io.FilePermission "${user.dir}${/}-", "read, write, delete";
 permission java.util.PropertyPermission "derby.*", "read";
 permission java.util.PropertyPermission "user.dir", "read";
@@ -62,10 +64,9 @@
 when starting the server as shown in the following example:<codeblock>java -Djava.security.manager
-Djava.security.policy=d:/nwsvr.policy
 org.apache.derby.drda.NetworkServerControl start -h localhost</codeblock></li>
 <li>The following example shows how to start the Network Server (assuming
-that you start the server on the host machine <i>myserver</i>)
-in the default security manager  (listening to client requests originating
-from other machines only). This example assumes that the policy file exists
-in <filepath>d:/nwsvr.policy</filepath>.<codeblock>java -Djava.security.manager
-Djava.security.policy=d:/nwsvr.policy
+that you start the server on the host machine <i>myserver</i>) in the default
+security manager  (listening to client requests originating from other machines
+only). This example assumes that the policy file exists in <filepath>d:/nwsvr.policy</filepath>.<codeblock>java
-Djava.security.manager -Djava.security.policy=d:/nwsvr.policy
 org.apache.derby.drda.NetworkServerControl start -h <i>myserver</i></codeblock></li>
 </ul></example>
 </taskbody>

Modified: db/derby/docs/trunk/src/devguide/rdevcsecure871406.dita
URL: http://svn.apache.org/viewcvs/db/derby/docs/trunk/src/devguide/rdevcsecure871406.dita?rev=374798&r1=374797&r2=374798&view=diff
==============================================================================
--- db/derby/docs/trunk/src/devguide/rdevcsecure871406.dita (original)
+++ db/derby/docs/trunk/src/devguide/rdevcsecure871406.dita Fri Feb  3 16:49:49 2006
@@ -1,4 +1,7 @@
 <?xml version="1.0" encoding="utf-8"?>
+
+<!DOCTYPE reference PUBLIC "-//IBM//DTD DITA Reference//EN"
+ "../dtd/reference.dtd">
 <!-- 
 Copyright 1997, 2005 The Apache Software Foundation or its licensors, as applicable.  
 
@@ -14,13 +17,11 @@
 See the License for the specific language governing permissions and  
 limitations under the License.
 -->
-<!DOCTYPE reference PUBLIC "-//IBM//DTD DITA Reference//EN" "../dtd/reference.dtd">
-<reference xml:lang="en-us" id="rdevcsecure871406">
+<reference id="rdevcsecure871406" xml:lang="en-us">
 <title>Java 2 security policy file example 1</title>
-<prolog>
-</prolog>
-<refbody><example>
-<codeblock><b>/* Grants permission to run <ph conref="devconrefs.dita#prod/productshortname"></ph>
and access all      */
+<prolog></prolog>
+<refbody>
+<example> <codeblock><b>/* Grants permission to run <ph conref="devconrefs.dita#prod/productshortname"></ph>
and access all      */
 /* databases under the <ph conref="devconrefs.dita#prod/productshortname"></ph>
system home              */
 /* when it is specified by the system property             */
 /* <ph conref="devconrefs.dita#prod/productshortname"></ph>.system.home     
                                  */
@@ -31,8 +32,9 @@
 
   permission java.lang.RuntimePermission "createClassLoader";
   permission java.util.PropertyPermission "derby.*", "read";
-
+  permission.java.io.FilePermission "${derby.system.home}","read";
   permission java.io.FilePermission "${derby.system.home}${/}
 -", "read,write,delete";
 };</codeblock></example>
-</refbody></reference>
+</refbody>
+</reference>

Modified: db/derby/docs/trunk/src/devguide/rdevcsecure871422.dita
URL: http://svn.apache.org/viewcvs/db/derby/docs/trunk/src/devguide/rdevcsecure871422.dita?rev=374798&r1=374797&r2=374798&view=diff
==============================================================================
--- db/derby/docs/trunk/src/devguide/rdevcsecure871422.dita (original)
+++ db/derby/docs/trunk/src/devguide/rdevcsecure871422.dita Fri Feb  3 16:49:49 2006
@@ -1,4 +1,7 @@
 <?xml version="1.0" encoding="utf-8"?>
+
+<!DOCTYPE reference PUBLIC "-//IBM//DTD DITA Reference//EN"
+ "../dtd/reference.dtd">
 <!-- 
 Copyright 1997, 2005 The Apache Software Foundation or its licensors, as applicable.  
 
@@ -14,13 +17,11 @@
 See the License for the specific language governing permissions and  
 limitations under the License.
 -->
-<!DOCTYPE reference PUBLIC "-//IBM//DTD DITA Reference//EN" "../dtd/reference.dtd">
-<reference xml:lang="en-us" id="rdevcsecure871422">
+<reference id="rdevcsecure871422" xml:lang="en-us">
 <title>Java 2 security policy file example 2</title>
-<prolog>
-</prolog>
-<refbody><example>
-<codeblock><b>/* Grants permission to run <ph conref="devconrefs.dita#prod/productshortname"></ph>
and access all      */
+<prolog></prolog>
+<refbody>
+<example> <codeblock><b>/* Grants permission to run <ph conref="devconrefs.dita#prod/productshortname"></ph>
and access all      */
 /* databases under the <ph conref="devconrefs.dita#prod/productshortname"></ph>
system home              */
 /* when it defaults to the current directory               */</b>
 
@@ -28,10 +29,11 @@
 grant codeBase "file://f:/<ph conref="devconrefs.dita#prod/productlowercase"></ph>/lib/derby.jar"
{
   permission java.lang.RuntimePermission "createClassLoader";
   permission java.util.PropertyPermission "derby.*", "read";
- 
   permission java.util.PropertyPermission "user.dir", "read";
+  permission java.io.FilePermission "${derby.system.home}","read";
   permission java.io.FilePermission "${user.dir}${/}-",
  "read,write,delete";
 
 };</codeblock></example>
-</refbody></reference>
+</refbody>
+</reference>

Modified: db/derby/docs/trunk/src/devguide/rdevcsecure871439.dita
URL: http://svn.apache.org/viewcvs/db/derby/docs/trunk/src/devguide/rdevcsecure871439.dita?rev=374798&r1=374797&r2=374798&view=diff
==============================================================================
--- db/derby/docs/trunk/src/devguide/rdevcsecure871439.dita (original)
+++ db/derby/docs/trunk/src/devguide/rdevcsecure871439.dita Fri Feb  3 16:49:49 2006
@@ -1,4 +1,7 @@
 <?xml version="1.0" encoding="utf-8"?>
+
+<!DOCTYPE reference PUBLIC "-//IBM//DTD DITA Reference//EN"
+ "../dtd/reference.dtd">
 <!-- 
 Copyright 1997, 2005 The Apache Software Foundation or its licensors, as applicable.  
 
@@ -14,13 +17,11 @@
 See the License for the specific language governing permissions and  
 limitations under the License.
 -->
-<!DOCTYPE reference PUBLIC "-//IBM//DTD DITA Reference//EN" "../dtd/reference.dtd">
-<reference xml:lang="en-us" id="rdevcsecure871439">
+<reference id="rdevcsecure871439" xml:lang="en-us">
 <title>Java 2 security policy file example 3</title>
-<prolog>
-</prolog>
-<refbody><example>
-<codeblock><b>/* Grants permission to run <ph conref="devconrefs.dita#prod/productshortname"></ph>
and access a single */
+<prolog></prolog>
+<refbody>
+<example> <codeblock><b>/* Grants permission to run <ph conref="devconrefs.dita#prod/productshortname"></ph>
and access a single */
 /* database (salesdb) under the <ph conref="devconrefs.dita#prod/productshortname"></ph>
system home     */
 
 /* Note <ph conref="devconrefs.dita#prod/productshortname"></ph>.system.home
must be an absolute pathname */</b>
@@ -29,7 +30,7 @@
 
   permission java.lang.RuntimePermission "createClassLoader";
   permission java.util.PropertyPermission "derby.*", "read";
-
+  permission java.io.FilePermission "${derby.system.home}","read";
   permission java.io.FilePermission "${derby.system.home}${/}*", 
 "read,write,delete";
   permission java.io.FilePermission "${derby.system.home}${/}
@@ -38,4 +39,5 @@
 
 
 }; </codeblock></example>
-</refbody></reference>
+</refbody>
+</reference>



Mime
View raw message