classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cp-patches] PATCH: AccessController improvements.


From: Casey Marshall
Subject: [cp-patches] PATCH: AccessController improvements.
Date: Sat, 24 Jul 2004 20:50:29 -0700
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.2 (gnu/linux)

Hi,

The attached patch improves the AccessController implementation
further, in its handling of privileged action calls. In particular, it
handles multiple doPrivileged calls in a single call stack from the
same class, and includes the ProtectionDomain of the class that called
doPrivileged.

Ok to commit?

2004-07-24  Casey Marshall <address@hidden>

        * java/security/AccessController.java
        (doPrivileged(PrivilegedAction)): push and pop a null
        context.
        (doPrivileged(PrivilegedExceptionAction)): likewise.
        * vm/reference/java/security/VMAccessController.java
        (contexts): changed to a ThreadLocal.
        (pushContext): don't require calling class any longer.
        (popContext): likewise.
        (getContext): move inGetContext check to before getStack.
        Include caller of doPrivileged in context.

-- 
Casey Marshall || address@hidden

Attachment: ac.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]