| // |
| // * Derby - Class org.apache.derbyTesting.functionTests.tests.derbynet.ProtocolTest.policy |
| // * |
| // * Licensed to the Apache Software Foundation (ASF) under one |
| // * or more contributor license agreements. See the NOTICE file |
| // * distributed with this work for additional information |
| // * regarding copyright ownership. The ASF licenses this file |
| // * to you under the Apache License, Version 2.0 (the |
| // * "License"); you may not use this file except in compliance |
| // * with the License. You may obtain a copy of the License at |
| // * |
| // * http://www.apache.org/licenses/LICENSE-2.0 |
| // * |
| // * Unless required by applicable law or agreed to in writing, |
| // * software distributed under the License is distributed on an |
| // * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| // * KIND, either express or implied. See the License for the |
| // * specific language governing permissions and limitations |
| // * under the License. |
| // * |
| // |
| // Test specific permissions for test: |
| // derbynet/ProtocolTest.java |
| // The permissions below are expected to be added to the set of default |
| // permissions granted to the test framework. |
| // |
| grant codeBase "${derbyTesting.testing}" { |
| permission java.net.SocketPermission "127.0.0.1", "connect,resolve"; |
| permission java.net.SocketPermission "localhost", "connect,resolve"; |
| permission java.net.SocketPermission "${derbyTesting.serverhost}", "connect,resolve"; |
| }; |
| |
| // Give write permission for trace files if debugging with |
| // derby.drda.traceAll=true |
| grant codeBase "${derbyTesting.netserver}" { |
| permission java.io.FilePermission "${user.dir}${/}system${/}-", "read,write"; |
| }; |