To run felix with security enabled and to use OSGi security:
- Create a policy file (name it eg felix.policy) with the following contents
grant { permission java.security.AllPermission; }; - Invoke felix as follows
$ java -Djava.security.manager -Djava.security.policy=/path/to/felix.policy -jar bin/felix.jar
- Download framework.security subproject (in trunk/framework.security)
svn checkout http://svn.apache.org/repos/asf/felix/trunk/framework.security - Build and install framework.security as a bundle into felix
- Use OSGi ConditionalPermissionAdmin to manage permissions
Labels
(None)