On Thu, Feb 24, 2011 at 10:38 AM, Elvy <[email protected]> wrote:
>
>
> Karl Pauls wrote:
>>
>> your problem is that you didn't install the framework.security
>> extension.
>>
>
> By simply installing the "Framework Security" bundle v1.4.1 (see
> http://felix.apache.org/site/downloads.cgi Felix download section ), my
> permission is now correctly denied from EDT thread. So far, so good.
>
> I gave a look at the
> https://cwiki.apache.org/confluence/display/FELIX/Apache+Felix+Framework+Security
> documentation page  and it hasn't been updated since 10 jan 2010! There,
> it's is stated that 3 properties should be set:
>
>  - org.osgi.framework.security="osgi" : I didn't have to set this property
> for my test to works. Is this really mandatory? What other values exist?

Notice it does say "should" not "must" :-)

If you already have a security manager installed you don't need this property.

>  - java.security.policy : this is the file where the permissions are
> defined. Has you can see, I already defined this property. I suppose this
> property behaves as it does in a standard Java environment, doesn't it?

Well, yes and no. The framework should get allpermission and will
handle security from there on -- hence, the document advices to just
grant allpermission. If you want to manage security for your bundles
have a look at the ConditionalPermissionAdmin service.

>  - org.osgi.framework.trust.repositories=<list of keystores> : this seems
> optional...

It does say so in the document too and yes, it is.

> It there an up-to-date documentation available? Do you need help to keep it
> updated?

No, there is no up-to-date document at the moment however, this one is
not that much out of date (it should be updated to note that security
has been released and use the released version of framework.security).
Furthermore, yes, help is always welcome :-)

regards,

Karl

>
> -----
> Tell me something you don't know!
> --
> View this message in context: 
> http://old.nabble.com/My-Permission-is-always-allowed-from-Event-Dispatching-Thread-tp30995963p31001671.html
> Sent from the Apache Felix - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>



-- 
Karl Pauls
[email protected]

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

Reply via email to