2
|
1 |
/*
|
|
2 |
*
|
|
3 |
*
|
|
4 |
* Policy file used by unit tests for attach API
|
|
5 |
*/
|
|
6 |
grant {
|
|
7 |
permission com.sun.tools.attach.AttachPermission "createAttachProvider";
|
|
8 |
|
|
9 |
/* implementation specific */
|
|
10 |
permission java.lang.RuntimePermission "accessClassInPackage.sun.misc";
|
|
11 |
permission java.lang.RuntimePermission "accessClassInPackage.sun.tools.attach";
|
|
12 |
permission java.lang.RuntimePermission "loadLibrary.attach";
|
|
13 |
permission java.util.PropertyPermission "sun.jvmstat.*", "read";
|
|
14 |
permission java.util.PropertyPermission "java.io.tmpdir", "read";
|
|
15 |
|
|
16 |
/* to read configuration file in META-INF/services, and write/delete .attach_pid<pid> */
|
|
17 |
permission java.io.FilePermission "<<ALL FILES>>", "read,write,delete";
|
|
18 |
};
|
|
19 |
|