annotate test/sun/net/www/http/HttpClient/OpenServer.policy @ 12677:a4299d47bd00

8134984: Text files should end in exactly one newline Summary: automated fixup of newlines at end-of-file via the usual perl one-liner Reviewed-by: chegar, sherman
author martin
date Wed, 02 Sep 2015 14:11:50 -0700
parents 7f8294841146
children
rev   line source
duke@0 1 // Permissions need to the test
duke@0 2 grant {
duke@0 3 permission java.net.SocketPermission "localhost", "resolve";
duke@0 4 permission java.net.SocketPermission "localhost", "connect";
duke@0 5 permission java.lang.RuntimePermission "accessClassInPackage.sun.net.www.http";
duke@0 6 };
duke@0 7
duke@0 8 // default permissions granted to all domains
duke@0 9
duke@0 10 grant {
duke@0 11 // Allows any thread to stop itself using the java.lang.Thread.stop()
duke@0 12 // method that takes no argument.
duke@0 13 // Note that this permission is granted by default only to remain
duke@0 14 // backwards compatible.
duke@0 15 // It is strongly recommended that you either remove this permission
duke@0 16 // from this policy file or further restrict it to code sources
duke@0 17 // that you specify, because Thread.stop() is potentially unsafe.
duke@0 18 // See "http://java.sun.com/notes" for more information.
duke@0 19 permission java.lang.RuntimePermission "stopThread";
duke@0 20
duke@0 21 // allows anyone to listen on un-privileged ports
duke@0 22 permission java.net.SocketPermission "localhost:1024-", "listen";
duke@0 23
duke@0 24 // "standard" properies that can be read by anyone
duke@0 25
duke@0 26 permission java.util.PropertyPermission "java.version", "read";
duke@0 27 permission java.util.PropertyPermission "java.vendor", "read";
duke@0 28 permission java.util.PropertyPermission "java.vendor.url", "read";
duke@0 29 permission java.util.PropertyPermission "java.class.version", "read";
duke@0 30 permission java.util.PropertyPermission "os.name", "read";
duke@0 31 permission java.util.PropertyPermission "os.version", "read";
duke@0 32 permission java.util.PropertyPermission "os.arch", "read";
duke@0 33 permission java.util.PropertyPermission "file.separator", "read";
duke@0 34 permission java.util.PropertyPermission "path.separator", "read";
duke@0 35 permission java.util.PropertyPermission "line.separator", "read";
duke@0 36
duke@0 37 permission java.util.PropertyPermission "java.specification.version", "read";
duke@0 38 permission java.util.PropertyPermission "java.specification.vendor", "read";
duke@0 39 permission java.util.PropertyPermission "java.specification.name", "read";
duke@0 40
duke@0 41 permission java.util.PropertyPermission "java.vm.specification.version", "read";
duke@0 42 permission java.util.PropertyPermission "java.vm.specification.vendor", "read";
duke@0 43 permission java.util.PropertyPermission "java.vm.specification.name", "read";
duke@0 44 permission java.util.PropertyPermission "java.vm.version", "read";
duke@0 45 permission java.util.PropertyPermission "java.vm.vendor", "read";
duke@0 46 permission java.util.PropertyPermission "java.vm.name", "read";
duke@0 47 };