0cf5c57454
Reviewed-by: chegar, rriggs
24 lines
1003 B
Plaintext
24 lines
1003 B
Plaintext
// Policy 8
|
|
grant {
|
|
// permissions common to all tests
|
|
permission java.util.PropertyPermission "*", "read";
|
|
permission java.io.FilePermission "${test.classes}${/}-", "read,write,delete";
|
|
permission java.net.NetPermission "getDefaultHttpClient";
|
|
permission java.lang.RuntimePermission "modifyThread";
|
|
permission java.util.logging.LoggingPermission "control", "";
|
|
permission java.net.SocketPermission "localhost:1024-", "accept,listen";
|
|
permission java.io.FilePermission "${test.src}${/}docs${/}-", "read";
|
|
permission java.lang.RuntimePermission "createClassLoader";
|
|
|
|
|
|
// permissions specific to this test
|
|
permission java.net.URLPermission "http://127.0.0.1:*/files/foo.txt", "GET:X-Foo1,X-Foo,X-Bar";
|
|
};
|
|
|
|
// For proxy only. Not being tested
|
|
grant codebase "file:${test.classes}/proxydir/-" {
|
|
permission java.net.SocketPermission "localhost:1024-", "accept,listen,connect";
|
|
permission java.net.SocketPermission "127.0.0.1:1024-", "connect,resolve";
|
|
};
|
|
|