Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 344276 - As user I want to start virgo with security manager
Summary: As user I want to start virgo with security manager
Status: ASSIGNED
Alias: None
Product: Virgo
Classification: RT
Component: runtime (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 enhancement with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Borislav Kapukaranov CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 388823 412012
  Show dependency tree
 
Reported: 2011-04-29 09:37 EDT by Verginia Noeva CLA
Modified: 2013-07-01 10:50 EDT (History)
4 users (show)

See Also:


Attachments
Patch of the changes made. (7.78 KB, patch)
2011-06-13 10:51 EDT, Verginia Noeva CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Verginia Noeva CLA 2011-04-29 09:37:17 EDT
Build Identifier: 

When I am using startup.bat/sh I want to have an option to run virgo with security manager.

Reproducible: Always
Comment 1 Verginia Noeva CLA 2011-06-13 10:51:20 EDT
Created attachment 197892 [details]
Patch of the changes made.
Comment 2 Borislav Kapukaranov CLA 2012-10-30 08:35:24 EDT
Having this is a useful feature and in the RT world users would appreciate it.

However we're not quite there yet. The patch proposed here is obsolete at this point. To run with a security manager we need to use the Equinox's security mechanisms, not the standard Java ones.

There are two core services that handle the permissions in the framework (ConditionalPermissionAdmin and PermissionAdmin). They are both registered at startup and take care of setting defaultly ALLPermission to all bundles in the unsecured case.
When the Equinox security manager is enabled they default to the same permission set but it can be configured dynamically with a user or server-provider implemented security agent.

The configuration happens by configuring on either location or signature criteria. I found the signature one much easier to configured but it has the downfall that you need to have signed platform bundles upfront to be able to recognise them from the user bundles. The location based configuration should be easier to use in that regard but it is hard to get the locations right.

In a nutshell this requires quite some effort understanding what's the right tweak, then wrapping it into the Virgo scripts and creating a Virgo default security agent. And a good documentation on how to extend and customize those.