jdk-24/test/jdk/com/sun/tools/attach/java.policy.allow
2024-10-02 16:07:10 +00:00

23 lines
949 B
Plaintext

/*
* 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 "manageProcess";
permission java.lang.RuntimePermission "accessClassInPackage.jdk.internal.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, write/delete .attach_pid<pid>,
* and read symbolic link of /proc/self/ns/mnt.
*/
permission java.io.FilePermission "<<ALL FILES>>", "read,write,delete,readlink";
};