Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
Showing
3 changed files
with
38 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters