* All "qemu-img info" calls are now run under resource limitations
that limit CPU time to 2 seconds and address space usage to 1 GB.
This helps avoid any DoS attacks via malicious images.
* All "qemu-img convert" calls now specify the import format so that
it does not have to be inferred by qemu-img.
Reviewed: https:/ /review. openstack. org/375526 /git.openstack. org/cgit/ openstack/ glance/ commit/ ?id=69a9b659fd4 8aa3c1f84fc7bc9 ae236b6803d31f
Committed: https:/
Submitter: Jenkins
Branch: master
commit 69a9b659fd48aa3 c1f84fc7bc9ae23 6b6803d31f
Author: Hemanth Makkapati <email address hidden>
Date: Fri Sep 23 09:29:12 2016 -0500
Adding constraints around qemu-img calls
* All "qemu-img info" calls are now run under resource limitations
that limit CPU time to 2 seconds and address space usage to 1 GB.
This helps avoid any DoS attacks via malicious images.
* All "qemu-img convert" calls now specify the import format so that
it does not have to be inferred by qemu-img.
SecurityImpact
Change-Id: Ib900bbc05cb9cc d90c6f56ccb4bf2 006e30cdc80
Closes-Bug: #1449062