Uploaded image for project: 'MINA SSHD'
  1. MINA SSHD
  2. SSHD-332

Nio2 & security

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.11.0
    • Fix Version/s: 0.12.0
    • Labels:
      None
    • Environment:
      Oracle Java 8

      Description

      I don't know if it is a JVM bug or normal behavior but a ProtectionDomain with no permission is associated with completionHandler thread by sun.misc.InnocuousThread class.
      As a result if a security manager is set all code in completionHandler has no permission (event if policy grants all permission).

      If the behavior of JVM is correct then you should add AccessController.doPrivileged() when entering completionHandler.

      You can also check if a SecurityManager is set and run without Nio2 as a quick fix.

        Attachments

        1. securesshd-0.0.1-SNAPSHOT-jar-with-dependencies.jar
          1.83 MB
          Gaël Lalire
        2. securesshd.zip
          7 kB
          Gaël Lalire

          Activity

            People

            • Assignee:
              gnt Guillaume Nodet
              Reporter:
              gaellalire Gaël Lalire
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 96h
                96h
                Remaining:
                Remaining Estimate - 96h
                96h
                Logged:
                Time Spent - Not Specified
                Not Specified