System.java (setSecurityManager): Javadoc fix.
2006-08-09 Gary Benson <gbenson@redhat.com> * java/lang/System.java (setSecurityManager): Javadoc fix. * java/security/VMAccessController.java (getContext): Comment fix. From-SVN: r116033
This commit is contained in:
parent
c7dc750aef
commit
fac186e500
|
@ -1,3 +1,8 @@
|
|||
2006-08-09 Gary Benson <gbenson@redhat.com>
|
||||
|
||||
* java/lang/System.java (setSecurityManager): Javadoc fix.
|
||||
* java/security/VMAccessController.java (getContext): Comment fix.
|
||||
|
||||
2006-08-09 Gary Benson <gbenson@redhat.com>
|
||||
|
||||
* include/java-stack.h (accesscontrol_trace_fn): Declare.
|
||||
|
|
|
@ -167,11 +167,6 @@ public final class System
|
|||
* first. Since this permission is denied by the default security manager,
|
||||
* setting the security manager is often an irreversible action.
|
||||
*
|
||||
* <STRONG>Spec Note:</STRONG> Don't ask me, I didn't write it. It looks
|
||||
* pretty vulnerable; whoever gets to the gate first gets to set the policy.
|
||||
* There is probably some way to set the original security manager as a
|
||||
* command line argument to the VM, but I don't know it.
|
||||
*
|
||||
* @param sm the new SecurityManager
|
||||
* @throws SecurityException if permission is denied
|
||||
*/
|
||||
|
|
|
@ -159,8 +159,6 @@ final class VMAccessController
|
|||
{
|
||||
// If the VM is initializing return the all-permissive context
|
||||
// so that any security checks succeed.
|
||||
//
|
||||
// XXX this might not be necessary, but it seems prudent.
|
||||
if (Thread.currentThread() == null)
|
||||
return DEFAULT_CONTEXT;
|
||||
|
||||
|
|
Loading…
Reference in New Issue