jdk/test/java/lang/System/System.policy
author darcy
Fri, 19 Aug 2011 17:42:24 -0700
changeset 10350 6d009f117062
parent 2 90ce3da70b43
child 25408 27563093d2d2
permissions -rw-r--r--
4748706: typos in java.util.Observable documentation Reviewed-by: iris
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
// Used by SecurityRace.java 
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
// Standard extensions get all permissions by default
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
grant codeBase "file:${{java.ext.dirs}}/*" {
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
	permission java.security.AllPermission;
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
};
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
// default permissions granted to all domains
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
grant { 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
	// Allows any thread to stop itself using the java.lang.Thread.stop()
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
	// method that takes no argument.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
	// Note that this permission is granted by default only to remain
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
	// backwards compatible.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
	// It is strongly recommended that you either remove this permission
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
	// from this policy file or further restrict it to code sources
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
	// that you specify, because Thread.stop() is potentially unsafe.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
	// See "http://java.sun.com/notes" for more information.
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
	// These two added for SecurityRace test
90ce3da70b43 Initial load
duke
parents:
diff changeset
    23
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
	permission java.lang.RuntimePermission "setSecurityManager";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
	permission java.lang.RuntimePermission "createSecurityManager";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
	// allows anyone to listen on un-privileged ports
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
	permission java.net.SocketPermission "localhost:1024-", "listen";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
	// "standard" properies that can be read by anyone
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
	permission java.util.PropertyPermission "java.version", "read";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
	permission java.util.PropertyPermission "java.vendor", "read";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
	permission java.util.PropertyPermission "java.vendor.url", "read";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
	permission java.util.PropertyPermission "java.class.version", "read";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
	permission java.util.PropertyPermission "os.name", "read";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
	permission java.util.PropertyPermission "os.version", "read";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
	permission java.util.PropertyPermission "os.arch", "read";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
	permission java.util.PropertyPermission "file.separator", "read";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
	permission java.util.PropertyPermission "path.separator", "read";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
	permission java.util.PropertyPermission "line.separator", "read";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
	permission java.util.PropertyPermission "java.specification.version", "read";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
	permission java.util.PropertyPermission "java.specification.vendor", "read";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
	permission java.util.PropertyPermission "java.specification.name", "read";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
	permission java.util.PropertyPermission "java.vm.specification.version", "read";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
	permission java.util.PropertyPermission "java.vm.specification.vendor", "read";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
	permission java.util.PropertyPermission "java.vm.specification.name", "read";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
	permission java.util.PropertyPermission "java.vm.version", "read";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
	permission java.util.PropertyPermission "java.vm.vendor", "read";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
	permission java.util.PropertyPermission "java.vm.name", "read";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
	permission java.util.PropertyPermission "java.vm.name", "read";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
};
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55