[jboss-jira] [JBoss JIRA] Closed: (JBAOP-675) AOP weaved code needs to appropriately generate Privileged Blocks
Kabir Khan (JIRA)
jira-events at lists.jboss.org
Mon Nov 24 09:54:36 EST 2008
[ https://jira.jboss.org/jira/browse/JBAOP-675?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kabir Khan closed JBAOP-675.
----------------------------
Fix Version/s: 2.1.0.GA
(was: 2.0.1.GA)
Resolution: Done
> AOP weaved code needs to appropriately generate Privileged Blocks
> -----------------------------------------------------------------
>
> Key: JBAOP-675
> URL: https://jira.jboss.org/jira/browse/JBAOP-675
> Project: JBoss AOP
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Affects Versions: 2.0.0.GA
> Reporter: Anil Saldhana
> Assignee: Flavia Rainone
> Priority: Blocker
> Fix For: 2.0.0.SP1, 2.1.0.GA
>
> Attachments: jboss-aop.jar, jboss-aop.jar
>
>
> Please generate a SP release asap.
> http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4190733
> http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4190726
> When a pointcut is applied, the aop generated code calls instanceadvisor (and other aop baggage) inducing a security manager "getClassLoader" permission check.
> You need to wrap the advisor call in a privileged block.
> =================
> if(System.getSecurityManager() == null)
> //get your advisor
> else
> {
> advisor = AccessController.doPrivileged(new PrivilegedAction<Advisor>(){
> public Advisor run()
> {
> //aop
> }
> }
> }
> ================================
> I will probably be back with more jira issues. So a few SP versions added to your project may not be bad. ;)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list