Re: Service Start Framework Permissions vs Service Permission

Gregg Wonderly <[email protected]> Fri, 30 May 2008 17:43:22 -0500
Newsgroups gmane.comp.java.sun.jini
Message-ID <[email protected]>
Bob Scheifler wrote:
>> Here's the visible output following the trace showing the call to 
>> AccessControlContext.checkPermission.
>>
>> I don't see the granted permission visible here...
> 
> The permissions you see for an individual protection domain depend
> on context.  You'll see the complete set of permissions if the
> SecurityManager class and Policy implementation class are both in
> bootclasspath, otherwise you'll only see the "static" permissions
> that were added when the protection domain was created, which for
> URLClassLoader and derivatives will be read permission on the
> code sources.  You're seeing the latter, presumably because the
> Policy class is in the extensions directory, not bootclasspath.

The Policy is the DynamicPolicy class that the starter kit uses.  Can I do 
something clever with the bootclasspath to get different, more informative output?

Gregg Wonderly

--------------------------------------------------------------------------
Getting Started:     http://www.jini.org/wiki/Category:Getting_Started
Community Web Site:  http://jini.org
jini-users Archive:  http://archives.java.sun.com/archives/jini-users.html
Unsubscribing:       email "signoff JINI-USERS"  to [email protected]