Comment 15 for bug 1386932

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (master)

Reviewed: https://review.openstack.org/136061
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=285cfaf0954d4c3e320b205c288240c1828476fe
Submitter: Jenkins
Branch: master

commit 285cfaf0954d4c3e320b205c288240c1828476fe
Author: Jay S. Bryant <email address hidden>
Date: Thu Nov 20 11:06:48 2014 -0600

    context.elevated() should use copy.deepcopy()

    Currently context.elevated is just doing a copy.copy(self).
    This needs to be changed to use copy.deepcopy so that the
    list reference is not shared between objects which leaves
    the possibility of an admin role leak.

    This fix changes context.elevated use copy.deepcopy.

    Change-Id: I349c53ccbe9e02ad2a3e84ae897424db9785a170
    Closes-bug: 1386932