[jboss-jira] [JBoss JIRA] (WFLY-442) Review of AccessController and PrivilegedAction use across AS7

Darran Lofthouse (JIRA) issues at jboss.org
Fri Jul 7 12:59:02 EDT 2017


     [ https://issues.jboss.org/browse/WFLY-442?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Darran Lofthouse reassigned WFLY-442:
-------------------------------------

    Assignee:     (was: Darran Lofthouse)


> Review of AccessController and PrivilegedAction use across AS7
> --------------------------------------------------------------
>
>                 Key: WFLY-442
>                 URL: https://issues.jboss.org/browse/WFLY-442
>             Project: WildFly
>          Issue Type: Task
>          Components: Security
>            Reporter: Darran Lofthouse
>              Labels: investigation_required
>
> The following needs reviewing across AS7: -
>  - On demand instantiation of PrivilegedActions where singletons would suffice (Consider frequency of calls, gc may be preferable).
>  - Use of AccessController even though there is no SecurityManager set.
>  - Code duplication, in every case I have seen so far the code is the same regardless of if PRIVILEGED or NON_PRIVILEGED
>  - Utility methods with visibility too high.
>  - In depth review of the other methods, i.e. if the first thing a public method does is set the class loader based on a parameter passed in it could be used badly - it may even be a justification for that method to NOT use a PrivilegedAction.
>  - Code that requires to be executed using a PrivilegedAction should also be double checked that it is not doing too much as the identity of the caller.



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the jboss-jira mailing list