JVM hangs at getAgentProperties after attaching to VM with lower IntegrityLevel

XMLWordPrintable

    • svc
    • b33

        This is a Sustaining managed bug.

        Problem description:
        On Windows 7 with User Account Control (UAC) enabled, JVM hangs at getAgentProperties or getSystemProperties after attaching from a "high" IntegrityLevel JVM to a "medium" IntegrityLevel JVM, using Attach API:
        attachedVM = com.sun.tools.attach.VirtualMachine.attach(pid);
        final Properties systemProperties = attachedVM.getSystemProperties();

        Root cause:
        In WindowsVirtualMachine.attach is implemented with named pipes.
        If named pipe was created with default security properties then windows will not allow process with"medium" IntegrityLevel to be attached to a processwith "high" IntegrityLevel.

        Solution:
        Create security properties that allow requested connection.

              Assignee:
              Sergey Gabdurakhmanov (Inactive)
              Reporter:
              Shadow Bug
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: