Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-2180

Thread threads pools inherit security context of submitting threads

    XMLWordPrintable

Details

    Description

      Some thread pool implementation will immediately create a new thread if work is submitted and there is not enough threads available to handle it. This newly created thread will inherit the access control context of the thread that is submitting the work, which essentially means that thread pool threads have a random access control context.

      This is the root cause of UNDERTOW-102, and likely other security manager related failures as well.

      I think that the best way to fix this is in the thread pool itself, as it should create the thread in a privileged block. We obviously cannot do this for JDK thread pools however.

      Attachments

        Activity

          People

            dlloyd@redhat.com David Lloyd
            sdouglas1@redhat.com Stuart Douglas
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: