Skip to content

Commit 9cf72e4

Browse files
committed
backport 76283dd2701ca4ad5c1c99a66f3e8e3d0fe55d44
1 parent 3c4fee4 commit 9cf72e4

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

test/jdk/com/sun/tools/attach/java.policy.allow

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
/*
2-
*
3-
*
42
* Policy file used by unit tests for attach API
53
*/
64
grant {
@@ -15,7 +13,10 @@ grant {
1513
permission java.lang.RuntimePermission "loadLibrary.attach";
1614
permission java.util.PropertyPermission "sun.jvmstat.*", "read";
1715

18-
/* to read configuration file in META-INF/services, and write/delete .attach_pid<pid> */
19-
permission java.io.FilePermission "<<ALL FILES>>", "read,write,delete";
16+
/*
17+
* To read configuration file in META-INF/services, write/delete .attach_pid<pid>,
18+
* and read symbolic link of /proc/self/ns/mnt.
19+
*/
20+
permission java.io.FilePermission "<<ALL FILES>>", "read,write,delete,readlink";
2021
};
2122

0 commit comments

Comments
 (0)