jdk/test/com/sun/tools/attach/java.policy.allow
author duke
Sat, 01 Dec 2007 00:00:00 +0000
changeset 2 90ce3da70b43
child 24119 9af809e02625
permissions -rw-r--r--
Initial load

/*
 *
 *
 * Policy file used by unit tests for attach API
 */
grant {
    permission com.sun.tools.attach.AttachPermission "attachVirtualMachine";
    permission com.sun.tools.attach.AttachPermission "createAttachProvider";

    /* implementation specific */
    permission java.lang.RuntimePermission "accessClassInPackage.sun.misc";
    permission java.lang.RuntimePermission "accessClassInPackage.sun.tools.attach";
    permission java.lang.RuntimePermission "accessClassInPackage.sun.jvmstat.monitor";
    permission java.lang.RuntimePermission "loadLibrary.attach";
    permission java.util.PropertyPermission "sun.jvmstat.*", "read";
    permission java.util.PropertyPermission "java.io.tmpdir", "read";

    /* to read configuration file in META-INF/services, and write/delete .attach_pid<pid> */
    permission java.io.FilePermission "<<ALL FILES>>", "read,write,delete";
};