dev@glassfish.java.net

Re: deployment error/thread death

From: Ron Monzillo <Ronald.Monzillo_at_Sun.COM>
Date: Thu, 19 Apr 2007 19:38:53 -0400

Ashish Sahni wrote:
> Bill Shannon wrote:
>
>> Clearly some security permission is required to add a security provider.
>> What are all the security permissions JRuby requires to run correctly?
>
> Following are the extra(over the default provided) security permissions
> as of b41-rc
> required by a Ruby on Rails app to run in GlassFish
>
> permission java.lang.RuntimePermission "createClassLoader";
> permission java.security.SecurityPermission "putProviderProperty.BC";
> permission java.lang.RuntimePermission "getenv.*";
> permission java.security.SecurityPermission "insertProvider.BC";
> permission java.lang.reflect.ReflectPermission "suppressAccessChecks";
>
>> Are we configuring all those security permissions in case someone enables
>> the security manager?
>
> No. And I would not expect GlassFish to, since these should be
> configured on a per application basis.

Is it possible to limit the codebase that needs these permissions to
some jruby code that gets used by the application, or must the whole
application have these permissions?

>
>
> -Ashish
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>