Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 684894 Details for
Bug 902629
CVE-2013-0208 openstack-nova: Boot from volume allows access to random volumes
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
folsom-CVE-2013-0208-1069904.patch
folsom-CVE-2013-0208-1069904.patch (text/plain), 3.08 KB, created by
Kurt Seifried
on 2013-01-22 06:52:45 UTC
(
hide
)
Description:
folsom-CVE-2013-0208-1069904.patch
Filename:
MIME Type:
Creator:
Kurt Seifried
Created:
2013-01-22 06:52:45 UTC
Size:
3.08 KB
patch
obsolete
>diff --git a/nova/compute/api.py b/nova/compute/api.py >index 82d7409..6d3a0b2 100644 >--- a/nova/compute/api.py >+++ b/nova/compute/api.py >@@ -507,6 +507,12 @@ class API(base.Base): > security_group, block_device_mapping) > instances.append(instance) > instance_uuids.append(instance['uuid']) >+ self._validate_bdm(context, instance) >+ # send a state update notification for the initial create to >+ # show it going from non-existent to BUILDING >+ notifications.send_update_with_states(context, instance, None, >+ vm_states.BUILDING, None, None, service="api") >+ > > # In the case of any exceptions, attempt DB cleanup and rollback the > # quota reservations. >@@ -623,6 +629,21 @@ class API(base.Base): > self.db.block_device_mapping_update_or_create(elevated_context, > values) > >+ def _validate_bdm(self, context, instance): >+ for bdm in self.db.block_device_mapping_get_all_by_instance( >+ context, instance['uuid']): >+ # NOTE(vish): For now, just make sure the volumes are accessible. >+ if bdm['snapshot_id'] is not None and bdm['volume_id'] is None: >+ try: >+ self.volume_api.get_snapshot(context, bdm['snapshot_id']) >+ except Exception: >+ raise exception.InvalidBDMSnapshot(id=bdm['snapshot_id']) >+ elif bdm['volume_id'] is not None: >+ try: >+ self.volume_api.get(context, bdm['volume_id']) >+ except Exception: >+ raise exception.InvalidBDMVolume(id=bdm['volume_id']) >+ > def _populate_instance_for_bdm(self, context, instance, instance_type, > image, block_device_mapping): > """Populate instance block device mapping information.""" >@@ -735,11 +756,6 @@ class API(base.Base): > self._populate_instance_for_bdm(context, instance, > instance_type, image, block_device_mapping) > >- # send a state update notification for the initial create to >- # show it going from non-existent to BUILDING >- notifications.send_update_with_states(context, instance, None, >- vm_states.BUILDING, None, None, service="api") >- > return instance > > def _check_create_policies(self, context, availability_zone, >diff --git a/nova/exception.py b/nova/exception.py >index 8de360d..2f58322 100644 >--- a/nova/exception.py >+++ b/nova/exception.py >@@ -219,6 +219,20 @@ class Invalid(NovaException): > code = 400 > > >+class InvalidBDM(Invalid): >+ message = _("Block Device Mapping is Invalid.") >+ >+ >+class InvalidBDMSnapshot(InvalidBDM): >+ message = _("Block Device Mapping is Invalid: " >+ "failed to get snapshot %(id)s.") >+ >+ >+class InvalidBDMVolume(InvalidBDM): >+ message = _("Block Device Mapping is Invalid: " >+ "failed to get volume %(id)s.") >+ >+ > class InvalidSnapshot(Invalid): > message = _("Invalid snapshot") + ": %(reason)s" >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 902629
:
684893
|
684894
|
687206
|
687207