Test com/sun/tools/attach/PermissionTest.java fails, test log snippet:
STDERR:
stdout: [];
stderr: [WARNING: A command line option has enabled the Security Manager
WARNING: The Security Manager is deprecated and will be removed in a future release
Exception in thread "main" java.lang.ExceptionInInitializerError
at jdk.attach/sun.tools.attach.AttachProviderImpl.attachVirtualMachine(AttachProviderImpl.java:58)
at jdk.attach/com.sun.tools.attach.VirtualMachine.attach(VirtualMachine.java:207)
at PermissionTest$TestMain.main(PermissionTest.java:120)
Caused by: java.security.AccessControlException: access denied ("java.io.FilePermission" "/proc/self/ns/mnt" "readlink")
at java.base/java.security.AccessControlContext.checkPermission(AccessControlContext.java:488)
at java.base/java.security.AccessController.checkPermission(AccessController.java:1085)
at java.base/java.lang.SecurityManager.checkPermission(SecurityManager.java:411)
at java.base/sun.nio.fs.UnixFileSystemProvider.readSymbolicLink(UnixFileSystemProvider.java:554)
at java.base/java.nio.file.Files.readSymbolicLink(Files.java:1474)
at jdk.attach/sun.tools.attach.VirtualMachineImpl.<clinit>(VirtualMachineImpl.java:66)
... 3 more
]
exitValue = 1
java.lang.RuntimeException: Expected to get exit value of [0], exit value is: [1]
at jdk.test.lib.process.OutputAnalyzer.shouldHaveExitValue(OutputAnalyzer.java:522)
at PermissionTest.runTests(PermissionTest.java:102)
at PermissionTest.main(PermissionTest.java:58)