You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Oliver Deakin (JIRA)" <ji...@apache.org> on 2006/11/13 11:27:46 UTC
[jira] Closed: (HARMONY-1596)
AccessController.doPrivileged(PrivilegedAction,AccessControllerContext)
does not use the passed in AccessControllerContext
[ http://issues.apache.org/jira/browse/HARMONY-1596?page=all ]
Oliver Deakin closed HARMONY-1596.
----------------------------------
Resolution: Won't Fix
> AccessController.doPrivileged(PrivilegedAction,AccessControllerContext) does not use the passed in AccessControllerContext
> --------------------------------------------------------------------------------------------------------------------------
>
> Key: HARMONY-1596
> URL: http://issues.apache.org/jira/browse/HARMONY-1596
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Environment: Linux
> Reporter: James M Snell
>
> When calling doPrivleged with a provided AccessControllerContext, the passed in context is never used to check permissions against.
> There is a simple way to test.
> System.setSecurityManager(new SecurityManager());
> ProtectionDomain domain = new MyCustomProtectionDomain(); // programmed to always return true
> AccessControlContext acc = new AccessControlContext(new ProtectionDomain[] {domain});
> PrivilegedAction action = new PrivilegedAction() {
> public Object run() {
> File file = new File("/tmp");
> file.exists();
> }
> }
> AccessController.doPrivileged(action, acc);
> The passed in acc will never be used
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira