Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

openjdk default java.policy

a guest Nov 7th, 2013 81 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1.  
  2. // Standard extensions get all permissions by default
  3.  
  4. grant codeBase "file:${{java.ext.dirs}}/*" {
  5.         permission java.security.AllPermission;
  6. };
  7.  
  8. grant codeBase "file:/usr/lib/jvm/java-6-openjdk-common/jre/lib/ext/*" {
  9.         permission java.security.AllPermission;
  10. };
  11. grant codeBase "file:/usr/lib/jvm/java-6-openjdk-alpha/jre/lib/ext/*" {
  12.         permission java.security.AllPermission;
  13. };
  14. grant codeBase "file:/usr/lib/jvm/java-6-openjdk-amd64/jre/lib/ext/*" {
  15.         permission java.security.AllPermission;
  16. };
  17. grant codeBase "file:/usr/lib/jvm/java-6-openjdk-armel/jre/lib/ext/*" {
  18.         permission java.security.AllPermission;
  19. };
  20. grant codeBase "file:/usr/lib/jvm/java-6-openjdk-armhf/jre/lib/ext/*" {
  21.         permission java.security.AllPermission;
  22. };
  23. grant codeBase "file:/usr/lib/jvm/java-6-openjdk-i386/jre/lib/ext/*" {
  24.         permission java.security.AllPermission;
  25. };
  26. grant codeBase "file:/usr/lib/jvm/java-6-openjdk-ia64/jre/lib/ext/*" {
  27.         permission java.security.AllPermission;
  28. };
  29. grant codeBase "file:/usr/lib/jvm/java-6-openjdk-lpia/jre/lib/ext/*" {
  30.         permission java.security.AllPermission;
  31. };
  32. grant codeBase "file:/usr/lib/jvm/java-6-openjdk-powerpc/jre/lib/ext/*" {
  33.         permission java.security.AllPermission;
  34. };
  35. grant codeBase "file:/usr/lib/jvm/java-6-openjdk-ppc64/jre/lib/ext/*" {
  36.         permission java.security.AllPermission;
  37. };
  38. grant codeBase "file:/usr/lib/jvm/java-6-openjdk-sparc/jre/lib/ext/*" {
  39.         permission java.security.AllPermission;
  40. };
  41. grant codeBase "file:/usr/lib/jvm/java-6-openjdk-sparc64/jre/lib/ext/*" {
  42.         permission java.security.AllPermission;
  43. };
  44.  
  45. // Comment this out if you want to give all permissions to the
  46. // Debian Java repository too:
  47. //grant codeBase "file:/usr/share/java/repository/-" {
  48. //        permission java.security.AllPermission;
  49. //};
  50.  
  51.  
  52. // default permissions granted to all domains
  53.  
  54. grant {
  55.         // Allows any thread to stop itself using the java.lang.Thread.stop()
  56.         // method that takes no argument.
  57.         // Note that this permission is granted by default only to remain
  58.         // backwards compatible.
  59.         // It is strongly recommended that you either remove this permission
  60.         // from this policy file or further restrict it to code sources
  61.         // that you specify, because Thread.stop() is potentially unsafe.
  62.         // See "http://java.sun.com/notes" for more information.
  63.         permission java.lang.RuntimePermission "stopThread";
  64.  
  65.         // allows anyone to listen on un-privileged ports
  66.         permission java.net.SocketPermission "localhost:1024-", "listen";
  67.  
  68.         // "standard" properies that can be read by anyone
  69.  
  70.         permission java.util.PropertyPermission "java.version", "read";
  71.         permission java.util.PropertyPermission "java.vendor", "read";
  72.         permission java.util.PropertyPermission "java.vendor.url", "read";
  73.         permission java.util.PropertyPermission "java.class.version", "read";
  74.         permission java.util.PropertyPermission "os.name", "read";
  75.         permission java.util.PropertyPermission "os.version", "read";
  76.         permission java.util.PropertyPermission "os.arch", "read";
  77.         permission java.util.PropertyPermission "file.separator", "read";
  78.         permission java.util.PropertyPermission "path.separator", "read";
  79.         permission java.util.PropertyPermission "line.separator", "read";
  80.  
  81.         permission java.util.PropertyPermission "java.specification.version", "read";
  82.         permission java.util.PropertyPermission "java.specification.vendor", "read";
  83.         permission java.util.PropertyPermission "java.specification.name", "read";
  84.  
  85.         permission java.util.PropertyPermission "java.vm.specification.version", "read";
  86.         permission java.util.PropertyPermission "java.vm.specification.vendor", "read";
  87.         permission java.util.PropertyPermission "java.vm.specification.name", "read";
  88.         permission java.util.PropertyPermission "java.vm.version", "read";
  89.         permission java.util.PropertyPermission "java.vm.vendor", "read";
  90.         permission java.util.PropertyPermission "java.vm.name", "read";
  91. };
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top