Uploaded image for project: 'JBoss Transaction Manager'
  1. JBoss Transaction Manager
  2. JBTM-2076

Add security manager's permission checking in com.arjuna.webservices11.ServiceRegistry#getRegistry

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 4.17.19, 5.0.2
    • Component/s: XTS
    • Labels:
      None

      Description

      Permissions checking in public static methods is needed for Common Criteria certification.

      Add something similar to this at the beginning of the method:

      public static ServiceRegistry getRegistry()
      {
          SecurityManager sm = System.getSecurityManager();
          if (sm != null) {
              sm.checkPermission(new RuntimePermission(ServiceRegistry.class.getName() + ".getRegistry"));
          }
          return REGISTRY ;
      }
      

        Attachments

          Activity

            People

            Assignee:
            gytis Gytis Trikleris
            Reporter:
            gytis Gytis Trikleris
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: