What you have to do is to create a dedicated bundle that will play the role of the permission agent.

Within this bundle :
- get the permission admin service reference
- get the permission list
- grant allpermission to the system bundle (bundle 0), other Felix bundles may need allpermission
- grant allpermission to this permission agent bundle
- then grant the different permissions you need to other bundles
- commit the permission list to the permission table

Then, each time a permission check occurs, the security layer will be able to determine whether each bundle providing each method on the call stack has been granted this particular permission.

Actually, as the permission administration is provided as a service, any bundle having sufficient permissions can modify the permission table at any time. So yes, you can therefore add/delete and commit new permissions when catching some specific framework or service events.

François


Sander de Groot wrote:
Would it be possible to create a custom bundle which listens to other bundles' events and apply a specific permission scheme based on the for example bundlename/location or other properties? If so how can I enforce such a scheme on another bundle?

Regards,

Sander

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

Reply via email to