]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Disallow backing files when uploading volumes to image
authorEric Harney <eharney@redhat.com>
Tue, 31 Mar 2015 23:48:17 +0000 (19:48 -0400)
committerEric Harney <eharney@redhat.com>
Mon, 15 Jun 2015 18:55:22 +0000 (14:55 -0400)
commit9634b76ba5886d6c2f2128d550cb005dabf48213
tree8da0e920700c91ccfc8af0fbb3a99731326434ea
parentf8149fc83f5e951b60d391741f0f9ae92c673533
Disallow backing files when uploading volumes to image

Volumes with a header referencing a backing file can leak
file data into the destination image when uploading a
volume to an image.

Halt the upload process if the volume data references a
backing file to prevent this.

Closes-Bug: #1415087
Change-Id: Iab9718794e7f7e8444015712cfa08c46848ebf78
(cherry picked from commit b1143ee45323e63b965a3710f9063e65b252c978)
cinder/image/image_utils.py
cinder/tests/test_image_utils.py