Hi Richard,

I have changed all "register" and "get" code in my Activators to run in
doPrivileged() blocks to no avail - I should also mention that I am using
felix-dependency manager to perform "register" and "get". Are there any
special consideration to take into account when using the DM under these
conditions - I have defined the following permissions for the DM:

allow {
  [org.osgi.service.condpermadmin.BundleLocationCondition
"file:${APP_HOME}/bundles/org.apache.felix.dependencymanager-3.0.0.jar"]
  (java.security.AllPermission "" "")
} "felix.dependencymanager-permissions"

My Activator:

    AccessController.doPrivileged(new PrivilegedAction<Void>() {
      @Override
      public Void run() {
        manager.add(createComponent()
            .setInterface(c.S2.class.getName(), null)
            .setImplementation(c.S2Impl.instance())
.add(createServiceDependency().setService(a.S1.class).setRequired(true).setCallbacks("added",
"removed"))
            );
        return null;
      }});





--
View this message in context: 
http://apache-felix.18485.n6.nabble.com/framework-security-tp4998719p4998726.html
Sent from the Apache Felix - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to