title: Setting permissions for OSGi bundles
body: <p>I've run into a problem trying to limit actions that the OSGi bundle can perform. According to the documents I've read, permissions for OSGi bundles should be set in OSGI-INF/permissions.perm file within bundle's JAR. However, no matter what I write in that file (and no matter if this file exists or not), bundles seem to have AllPermissions. More specifically, I start OSGi from command line with command</p>
  
  <pre><code>D:\temp\2&gt;java -jar org.eclipse.osgi_3.3.2.R33x_v20080105.jar -console
  -Djava.security.manager=org.eclipse.osgi.framework.internal.core.FrameworkSecurityManager
  </code></pre>
  
  <p>Then I install bundle with command</p>
  
  <pre><code>osgi&gt; install file:/d:/temp/2/J1.jar
  </code></pre>
  
  <p>and start it. When I try to perform an operation that should be restricted (e.g., accessing a file, loading a library, etc.), operation always succeeds, even with empty permissions.perm file. How do I make permissions specified in permissions.perm file active?</p>