Responding to both Berin and Steve:
> -----Original Message-----
> From: Berin Loritsch [mailto:[EMAIL PROTECTED]
>
> To be fair, I think that some folks have reported that they have a hard
> time
> getting phoenix to have *stricter* permissions. By default it starts out
> with
> AllPermissions--which can be a problem if you are in a DMZ.
>
Oh absolutely. It's much better to be able to control permissions than to
have none at all. It's just that with Merlin you need to realize that:
1. You have NO permissions to begin with
2. Some of the permissions necessary to run might surprise you
At least in my effort to get OpenJMS to run in Merlin, I found myself
figuring out the needed permissions via trial and error.
> I've been digging through the security policy javadocs and related
> material. Based on this initial pass it seems clear that we need to
> setup some classes in Merlin as privaliged and from here, dynamically
> create privaliges based on deployment directives.
>
> There is a issue here I mentioned in another thread concerning the
> repository model. Once we start getting into the security side we are
> going to need to put policy information inside the <host> tag (inside
> the kernel repository declaration). I think it would be wise if we
> update merlin before a release to declare the host name in an attribute
> instead of using the element value. This will simplify things post
> release when dealing with host related policy. Secondly, as an interim
> measure we could include an all permission policy to eliminate the issue
> you seeing. Is this just something we need to include in the .bat and
> .sh files?
>
> Steve.
The trouble with including AllPermissions as default is that it sort of
hides any security issues. I suppose for the short term it would be
acceptable. To get this to work, you would need a security.policy file that
contained:
grant {
permission java.security.AllPermission;
};
placed probably in $MERLIN_HOME/bin or $MERLIN_HOME/config. Then you'd need
to add the following line to the .bat and .sh files:
-Djava.security.policy=$MERLIN_HOME/bin/security.policy
I'd update CVS myself right now but I'm behind a firewall and will be until
Sunday.
As for the <host> tag, if we're going to mess with the kernel.xml file
format at all, we should definitely do it ASAP. It sounds like a good plan
to me.
J. Aaron Farr
SONY ELECTRONICS
DDP-CIM
(724) 696-7653
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]