jdk/src/share/lib/security/java.policy
author mullan
Tue, 03 Jul 2012 14:56:58 -0400
changeset 13159 b2bf5f74dd06
parent 2183 8eb97a6368b8
child 22339 e91bfaf4360d
permissions -rw-r--r--
7133344: Document the java.security.properties system property feature in the java.security file Reviewed-by: hawtin, mullan, weijun Contributed-by: jason.uh@oracle.com
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
90ce3da70b43 Initial load
duke
parents:
diff changeset
     2
// Standard extensions get all permissions by default
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
grant codeBase "file:${{java.ext.dirs}}/*" {
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
	permission java.security.AllPermission;
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
};
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
// default permissions granted to all domains
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
grant { 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
	// Allows any thread to stop itself using the java.lang.Thread.stop()
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
	// method that takes no argument.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
	// Note that this permission is granted by default only to remain
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
	// backwards compatible.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
	// It is strongly recommended that you either remove this permission
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
	// from this policy file or further restrict it to code sources
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
	// that you specify, because Thread.stop() is potentially unsafe.
2183
8eb97a6368b8 6787130: java.policy file contains stale link to http://java.sun.com/notes
mullan
parents: 2
diff changeset
    18
	// See the API specification of java.lang.Thread.stop() for more 
8eb97a6368b8 6787130: java.policy file contains stale link to http://java.sun.com/notes
mullan
parents: 2
diff changeset
    19
        // information.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
	permission java.lang.RuntimePermission "stopThread";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    21
90ce3da70b43 Initial load
duke
parents:
diff changeset
    22
	// allows anyone to listen on un-privileged ports
90ce3da70b43 Initial load
duke
parents:
diff changeset
    23
	permission java.net.SocketPermission "localhost:1024-", "listen";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
	// "standard" properies that can be read by anyone
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
	permission java.util.PropertyPermission "java.version", "read";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
	permission java.util.PropertyPermission "java.vendor", "read";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
	permission java.util.PropertyPermission "java.vendor.url", "read";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
	permission java.util.PropertyPermission "java.class.version", "read";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
	permission java.util.PropertyPermission "os.name", "read";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
	permission java.util.PropertyPermission "os.version", "read";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
	permission java.util.PropertyPermission "os.arch", "read";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
	permission java.util.PropertyPermission "file.separator", "read";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
	permission java.util.PropertyPermission "path.separator", "read";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
	permission java.util.PropertyPermission "line.separator", "read";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
	permission java.util.PropertyPermission "java.specification.version", "read";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
	permission java.util.PropertyPermission "java.specification.vendor", "read";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
	permission java.util.PropertyPermission "java.specification.name", "read";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
	permission java.util.PropertyPermission "java.vm.specification.version", "read";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
	permission java.util.PropertyPermission "java.vm.specification.vendor", "read";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
	permission java.util.PropertyPermission "java.vm.specification.name", "read";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
	permission java.util.PropertyPermission "java.vm.version", "read";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
	permission java.util.PropertyPermission "java.vm.vendor", "read";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
	permission java.util.PropertyPermission "java.vm.name", "read";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
};
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49