jdk/test/com/sun/tools/attach/java.policy.deny
author sla
Fri, 25 Apr 2014 17:19:49 +0200
changeset 24119 9af809e02625
parent 2 90ce3da70b43
child 24120 9932a1e8722d
permissions -rw-r--r--
8033104: sun/jvmstat/monitor/MonitoredVm/CR6672135.java failing on all platforms Reviewed-by: kamg, mgronlun
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
90ce3da70b43 Initial load
duke
parents:
diff changeset
     2
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
 * Policy file used by unit tests for attach API
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
grant {
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
    permission com.sun.tools.attach.AttachPermission "createAttachProvider";
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
    /* implementation specific */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
    permission java.lang.RuntimePermission "accessClassInPackage.sun.misc";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
    permission java.lang.RuntimePermission "accessClassInPackage.sun.tools.attach";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
    permission java.lang.RuntimePermission "loadLibrary.attach";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
    permission java.util.PropertyPermission "sun.jvmstat.*", "read";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
    /* to read configuration file in META-INF/services, and write/delete .attach_pid<pid> */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
    permission java.io.FilePermission "<<ALL FILES>>", "read,write,delete";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
};
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18