test/jdk/com/sun/tools/attach/java.policy.deny
author erikj
Tue, 12 Sep 2017 19:03:39 +0200
changeset 47216 71c04702a3d5
parent 24268 jdk/test/com/sun/tools/attach/java.policy.deny@43fb1c9e594c
permissions -rw-r--r--
8187443: Forest Consolidation: Move files to unified layout Reviewed-by: darcy, ihse
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