view test/java/rmi/server/RMIClassLoader/downloadArrayClass/security.policy @ 6256:bdbb9f5a2ee7

8001040: Rework RMI model Reviewed-by: alanb, ahgross, coffeys, dmocek
author smarks
date Wed, 27 Feb 2013 13:58:55 -0800
parents 37a05a11f281
children
line wrap: on
line source
/*
 * security policy used by the test process
 */

grant codeBase "file:${java.home}/lib/ext/*" {
    permission java.security.AllPermission;
};

grant {
    permission java.util.PropertyPermission
        "java.rmi.server.codebase", "read,write";

    // permissions needed to move classes into separate codebase directories
    permission java.io.FilePermission
	"${test.classes}${/}-", "read,write,delete";
    permission java.io.FilePermission
	".${/}-", "read,write,delete";

    // used by TestLibrary to determine test environment
    permission java.util.PropertyPermission "test.classes", "read";
    permission java.util.PropertyPermission "test.src", "read";
    permission java.util.PropertyPermission "user.dir", "read";
    permission java.util.PropertyPermission "java.home", "read";

    // allow exporting of remote objects on an arbitrary port
    permission java.net.SocketPermission "*:1024-", "connect,accept,listen";
};