jdk/test/java/nio/charset/spi/default-pol
author katleman
Thu, 05 Jan 2012 08:42:37 -0800
changeset 11376 075fe3928b7f
parent 4817 67f425ac409b
child 25408 27563093d2d2
permissions -rw-r--r--
Added tag jdk8-b20 for changeset 90e14ec89395
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4817
67f425ac409b 6920732: opensource test/java/nio/charset
sherman
parents:
diff changeset
     1
67f425ac409b 6920732: opensource test/java/nio/charset
sherman
parents:
diff changeset
     2
// Standard extensions get all permissions by default
67f425ac409b 6920732: opensource test/java/nio/charset
sherman
parents:
diff changeset
     3
67f425ac409b 6920732: opensource test/java/nio/charset
sherman
parents:
diff changeset
     4
grant codeBase "file:${java.home}/lib/ext/*" {
67f425ac409b 6920732: opensource test/java/nio/charset
sherman
parents:
diff changeset
     5
	permission java.security.AllPermission;
67f425ac409b 6920732: opensource test/java/nio/charset
sherman
parents:
diff changeset
     6
};
67f425ac409b 6920732: opensource test/java/nio/charset
sherman
parents:
diff changeset
     7
67f425ac409b 6920732: opensource test/java/nio/charset
sherman
parents:
diff changeset
     8
// default permissions granted to all domains
67f425ac409b 6920732: opensource test/java/nio/charset
sherman
parents:
diff changeset
     9
67f425ac409b 6920732: opensource test/java/nio/charset
sherman
parents:
diff changeset
    10
grant { 
67f425ac409b 6920732: opensource test/java/nio/charset
sherman
parents:
diff changeset
    11
	// Allows any thread to stop itself using the java.lang.Thread.stop()
67f425ac409b 6920732: opensource test/java/nio/charset
sherman
parents:
diff changeset
    12
	// method that takes no argument.
67f425ac409b 6920732: opensource test/java/nio/charset
sherman
parents:
diff changeset
    13
	// Note that this permission is granted by default only to remain
67f425ac409b 6920732: opensource test/java/nio/charset
sherman
parents:
diff changeset
    14
	// backwards compatible.
67f425ac409b 6920732: opensource test/java/nio/charset
sherman
parents:
diff changeset
    15
	// It is strongly recommended that you either remove this permission
67f425ac409b 6920732: opensource test/java/nio/charset
sherman
parents:
diff changeset
    16
	// from this policy file or further restrict it to code sources
67f425ac409b 6920732: opensource test/java/nio/charset
sherman
parents:
diff changeset
    17
	// that you specify, because Thread.stop() is potentially unsafe.
67f425ac409b 6920732: opensource test/java/nio/charset
sherman
parents:
diff changeset
    18
	// See "http://java.sun.com/notes" for more information.
67f425ac409b 6920732: opensource test/java/nio/charset
sherman
parents:
diff changeset
    19
	permission java.lang.RuntimePermission "stopThread";
67f425ac409b 6920732: opensource test/java/nio/charset
sherman
parents:
diff changeset
    20
67f425ac409b 6920732: opensource test/java/nio/charset
sherman
parents:
diff changeset
    21
	// allows anyone to listen on un-privileged ports
67f425ac409b 6920732: opensource test/java/nio/charset
sherman
parents:
diff changeset
    22
	permission java.net.SocketPermission "localhost:1024-", "listen";
67f425ac409b 6920732: opensource test/java/nio/charset
sherman
parents:
diff changeset
    23
67f425ac409b 6920732: opensource test/java/nio/charset
sherman
parents:
diff changeset
    24
	// "standard" properies that can be read by anyone
67f425ac409b 6920732: opensource test/java/nio/charset
sherman
parents:
diff changeset
    25
67f425ac409b 6920732: opensource test/java/nio/charset
sherman
parents:
diff changeset
    26
	permission java.util.PropertyPermission "java.version", "read";
67f425ac409b 6920732: opensource test/java/nio/charset
sherman
parents:
diff changeset
    27
	permission java.util.PropertyPermission "java.vendor", "read";
67f425ac409b 6920732: opensource test/java/nio/charset
sherman
parents:
diff changeset
    28
	permission java.util.PropertyPermission "java.vendor.url", "read";
67f425ac409b 6920732: opensource test/java/nio/charset
sherman
parents:
diff changeset
    29
	permission java.util.PropertyPermission "java.class.version", "read";
67f425ac409b 6920732: opensource test/java/nio/charset
sherman
parents:
diff changeset
    30
	permission java.util.PropertyPermission "os.name", "read";
67f425ac409b 6920732: opensource test/java/nio/charset
sherman
parents:
diff changeset
    31
	permission java.util.PropertyPermission "os.version", "read";
67f425ac409b 6920732: opensource test/java/nio/charset
sherman
parents:
diff changeset
    32
	permission java.util.PropertyPermission "os.arch", "read";
67f425ac409b 6920732: opensource test/java/nio/charset
sherman
parents:
diff changeset
    33
	permission java.util.PropertyPermission "file.separator", "read";
67f425ac409b 6920732: opensource test/java/nio/charset
sherman
parents:
diff changeset
    34
	permission java.util.PropertyPermission "path.separator", "read";
67f425ac409b 6920732: opensource test/java/nio/charset
sherman
parents:
diff changeset
    35
	permission java.util.PropertyPermission "line.separator", "read";
67f425ac409b 6920732: opensource test/java/nio/charset
sherman
parents:
diff changeset
    36
67f425ac409b 6920732: opensource test/java/nio/charset
sherman
parents:
diff changeset
    37
	permission java.util.PropertyPermission "java.specification.version", "read";
67f425ac409b 6920732: opensource test/java/nio/charset
sherman
parents:
diff changeset
    38
	permission java.util.PropertyPermission "java.specification.vendor", "read";
67f425ac409b 6920732: opensource test/java/nio/charset
sherman
parents:
diff changeset
    39
	permission java.util.PropertyPermission "java.specification.name", "read";
67f425ac409b 6920732: opensource test/java/nio/charset
sherman
parents:
diff changeset
    40
67f425ac409b 6920732: opensource test/java/nio/charset
sherman
parents:
diff changeset
    41
	permission java.util.PropertyPermission "java.vm.specification.version", "read";
67f425ac409b 6920732: opensource test/java/nio/charset
sherman
parents:
diff changeset
    42
	permission java.util.PropertyPermission "java.vm.specification.vendor", "read";
67f425ac409b 6920732: opensource test/java/nio/charset
sherman
parents:
diff changeset
    43
	permission java.util.PropertyPermission "java.vm.specification.name", "read";
67f425ac409b 6920732: opensource test/java/nio/charset
sherman
parents:
diff changeset
    44
	permission java.util.PropertyPermission "java.vm.version", "read";
67f425ac409b 6920732: opensource test/java/nio/charset
sherman
parents:
diff changeset
    45
	permission java.util.PropertyPermission "java.vm.vendor", "read";
67f425ac409b 6920732: opensource test/java/nio/charset
sherman
parents:
diff changeset
    46
	permission java.util.PropertyPermission "java.vm.name", "read";
67f425ac409b 6920732: opensource test/java/nio/charset
sherman
parents:
diff changeset
    47
};
67f425ac409b 6920732: opensource test/java/nio/charset
sherman
parents:
diff changeset
    48