JDK-7083329 : Limited doPrivileged
  • Type: Enhancement
  • Component: security-libs
  • Sub-Component: java.security
  • Affected Version: 8
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2011-08-25
  • Updated: 2014-06-06
  • Resolved: 2013-05-15
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8
8Resolved
Related Reports
Duplicate :  
Relates :  
Description
The basic idea is to allow code to assert a subset of it's privileges without
otherwise preventing the full access control stack walk for other permissions.

For example, some bootstrap jre code asserts a privilege to GET a configuration
file via http....

    AccessController.doPrivileged(anon class..., new URLPermission(url, request
props..., "GET")

   A checkPermission() for a matching URLPermission (done by the http handler)
would stop walking the acc stack at that doPrivileged() and succeed. However, a
non-matching URLPermission or a FilePermission, for example, would match the jre
class's generally assigned privileges and continue walking the full acc stack as
if the limited doPrivileged() had not been invoked.

These limited privileges are also captured by getAccessControlContext() and
thread inheritance.

Comments
duplicate bug, not verified
2013-06-10

Duplicate of JDK-8014097
2013-05-15