RE: java.securty.AccessControlContext

Roland Schemers (Roland.Schemers@Eng)
Mon, 27 Oct 1997 13:42:58 -0800 (PST)

Date: Mon, 27 Oct 1997 13:42:58 -0800 (PST)
From: Roland Schemers <Roland.Schemers@Eng>
Subject: RE: java.securty.AccessControlContext
To: clark.evans@gartner.com

> The openFileForSearching is part of the explorer class, which
> has the approprate permissions, it is on the top of the stack:
>
> system.startapp(),explorer.main(),explorer.click(),explorer.startsearcher(),
> searcher.run(),explorer.openFileForSearching()
>
> Why is a begin privleged required?

No, you would pass this object to the untrusted "search applet" code.
At that point you do have untrusted code on the stack, thus the begin/end
is needed. The untrusted search applet could call this method (which
is in a different protection domain) to have it open the file.

roland