view test/java/rmi/activation/ActivationSystem/stubClassesPermitted/rmid.security.policy @ 16252:b6d62dc38c36

8166763: java/rmi/* tests fail intermittently with "Port already in use" in RMID.start() Reviewed-by: chegar
author mli
date Mon, 12 Dec 2016 17:29:46 -0800
parents b2a69d66dc65
children
line wrap: on
line source
grant {
    permission com.sun.rmi.rmid.ExecOptionPermission "-Djava.security.manager=java.lang.SecurityManager";
    permission com.sun.rmi.rmid.ExecOptionPermission "-Djava.security.policy=*";

    // test needs to export a set of internal APIs to access them from unamed module
    permission com.sun.rmi.rmid.ExecOptionPermission "*";
    permission java.lang.RuntimePermission "selectorProvider";
    permission java.lang.RuntimePermission "accessClassInPackage.sun.nio.ch";
    permission java.util.PropertyPermission "test.java.rmi.testlibrary.RMIDSelectorProvider.port", "read";
    permission java.util.PropertyPermission "test.java.rmi.testlibrary.RMIDSelectorProvider.timeout", "read";
    permission java.net.SocketPermission "*:1024-", "listen,resolve,connect,accept";
};