Re: Service Start Framework Permissions vs Service Permission

Bob Scheifler <[email protected]> Fri, 30 May 2008 17:22:04 -0400
Newsgroups gmane.comp.java.sun.jini
Message-ID <[email protected]>
> 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.

- Bob

--------------------------------------------------------------------------
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]