0

I want to add Java Security Manager for a OSGi equinox based system. My problem is that after enabling the JSM, every bundle get the BundlePermission from the framework, which result in java.lang.AllPermission to all the bundles.

How can I restrict for bundles for different policies?, e.g restrict some permissions based on the install location. etc..

Aruna Karunarathna
  • 981
  • 2
  • 23
  • 55

1 Answers1

1

You should use the ConditionalPermissionAdmin service to set the desired permissions for the bundles. See https://osgi.org/javadoc/r4v43/core/org/osgi/service/condpermadmin/ConditionalPermissionAdmin.html.

BJ Hargrave
  • 9,324
  • 1
  • 19
  • 27