java.policy 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. // Standard extensions get all permissions by default
  2. grant codeBase "file:${{java.ext.dirs}}/*" {
  3. permission java.security.AllPermission;
  4. };
  5. // default permissions granted to all domains
  6. grant {
  7. // Allows any thread to stop itself using the java.lang.Thread.stop()
  8. // method that takes no argument.
  9. // Note that this permission is granted by default only to remain
  10. // backwards compatible.
  11. // It is strongly recommended that you either remove this permission
  12. // from this policy file or further restrict it to code sources
  13. // that you specify, because Thread.stop() is potentially unsafe.
  14. // See the API specification of java.lang.Thread.stop() for more
  15. // information.
  16. permission java.lang.RuntimePermission "stopThread";
  17. // allows anyone to listen on dynamic ports
  18. permission java.net.SocketPermission "localhost:0", "listen";
  19. // "standard" properies that can be read by anyone
  20. permission java.util.PropertyPermission "java.version", "read";
  21. permission java.util.PropertyPermission "java.vendor", "read";
  22. permission java.util.PropertyPermission "java.vendor.url", "read";
  23. permission java.util.PropertyPermission "java.class.version", "read";
  24. permission java.util.PropertyPermission "os.name", "read";
  25. permission java.util.PropertyPermission "os.version", "read";
  26. permission java.util.PropertyPermission "os.arch", "read";
  27. permission java.util.PropertyPermission "file.separator", "read";
  28. permission java.util.PropertyPermission "path.separator", "read";
  29. permission java.util.PropertyPermission "line.separator", "read";
  30. permission java.util.PropertyPermission "java.specification.version", "read";
  31. permission java.util.PropertyPermission "java.specification.vendor", "read";
  32. permission java.util.PropertyPermission "java.specification.name", "read";
  33. permission java.util.PropertyPermission "java.vm.specification.version", "read";
  34. permission java.util.PropertyPermission "java.vm.specification.vendor", "read";
  35. permission java.util.PropertyPermission "java.vm.specification.name", "read";
  36. permission java.util.PropertyPermission "java.vm.version", "read";
  37. permission java.util.PropertyPermission "java.vm.vendor", "read";
  38. permission java.util.PropertyPermission "java.vm.name", "read";
  39. permission java.util.PropertyPermission "sun.security.pkcs11.disableKeyExtraction", "read";
  40. };