jdk/test/com/sun/tools/attach/java.policy.deny
author duke
Sat, 01 Dec 2007 00:00:00 +0000
changeset 2 90ce3da70b43
child 24119 9af809e02625
permissions -rw-r--r--
Initial load
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
    permission java.util.PropertyPermission "java.io.tmpdir", "read";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
    /* to read configuration file in META-INF/services, and write/delete .attach_pid<pid> */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
    permission java.io.FilePermission "<<ALL FILES>>", "read,write,delete";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
};
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19