Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8341309

Test com/sun/tools/attach/PermissionTest.java fails after JDK-8327114 when Security manager is enabled

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 24
    • core-svc
    • 24

      ----------System.err:(38/2433)----------
       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

            Unassigned Unassigned
            dholmes David Holmes
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: