jdk-24/test/jdk/java/rmi/transport/dgcDeadLock/registry.security.policy
Stuart Marks 7c85f3510c 8267123: Remove RMI Activation
Reviewed-by: erikj, rriggs, alanb
2021-05-27 15:19:45 +00:00

28 lines
1.1 KiB
Plaintext

/*
* security policy used by the registry sub-process
*/
grant {
// used by TestLibrary to determine extra commandline properties
permission java.io.FilePermission "..${/}..${/}test.props", "read";
// property specifically accessed by this test.
permission java.util.PropertyPermission "sun.rmi.transport.cleanInterval", "write";
permission java.util.PropertyPermission "package.restrict.access.sun", "read";
permission java.util.PropertyPermission "package.restrict.access.sun.rmi", "read";
// test needs to use java to exec an EchoImpl object
permission java.io.FilePermission "${java.home}${/}bin${/}java", "execute";
// used by TestLibrary to determine test environment
permission java.util.PropertyPermission "test.*", "read";
permission java.util.PropertyPermission "user.dir", "read";
permission java.util.PropertyPermission "java.home", "read";
permission java.util.PropertyPermission "java.security.policy", "read";
permission java.util.PropertyPermission "java.security.manager", "read";
// test needs to communicate with objects on arbitrary ports
permission java.net.SocketPermission "*:1024-", "connect,accept,listen";
};