java.policy.allow 814 字节
Newer Older
D
duke 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
/*
 *
 *
 * 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";

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