Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-3950

Permission check being done even when security manager is absent

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • framework-4.2.0
    • framework-4.2.1
    • Framework
    • None

    Description

      I found this code in org/apache/felix/framework/ExtensionManager.java:

      if (!((BundleProtectionDomain) bundle.getProtectionDomain()).impliesDirect(new AllPermission()))

      { throw new SecurityException("Extension Bundles must have AllPermission"); }

      It's not a problem now, but it can be a problem in some circumastances. I think this check should be done only when sm is present.

      Attachments

        Activity

          People

            karlpauls Karl Pauls
            sahoo Sanjeeb Kumar Sahoo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: