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..