Comment 4 for bug 1187076

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

Reviewed: https://review.openstack.org/35496
Committed: http://github.com/openstack/cinder/commit/ca0e7295f44235c7d64954a225a172718a074dd8
Submitter: Jenkins
Branch: master

commit ca0e7295f44235c7d64954a225a172718a074dd8
Author: XueChendi <email address hidden>
Date: Wed Jul 3 22:20:32 2013 +0800

    Prevent wrongly privilege escalation of a context

    Current codes in create_volume() may exists a scenario that
    a context which is not elevated but after it fails in volume
    creation, it becomes elevated. This patch saves original
    context, so that if it fails in volume creation simply use the
    original context for further scheduling.

    Fix bug:1187076

    Change-Id: I2822b1612ec741209b278fc65f18d0f8f3243e0a