Live snapshots creates a temporary directory where libvirt driver
creates a new image from the instance's disk using blockRebase.
Currently this directory is created with 777 permissions making this
directory accessible by all the users in the system.
This patch changes the tempdir permissions so they have the o+x
flag set, which is what libvirt needs to be able to write in it and
Closes-Bug: #1227027
Change-Id: I767ff5247b4452821727e92b668276004fc0f84d
(cherry picked from commit 8a34fc3d48c467aa196f65eed444ccdc7c02f19f)
Reviewed: https:/ /review. openstack. org/60548 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=75be5abd6b3 fa0f7f27fe9c805 f832cd41d44a5d
Committed: https:/
Submitter: Jenkins
Branch: stable/havana
commit 75be5abd6b3fa0f 7f27fe9c805f832 cd41d44a5d
Author: Xavier Queralt <email address hidden>
Date: Wed Nov 27 20:44:36 2013 +0100
Enforce permissions in snapshots temporary dir
Live snapshots creates a temporary directory where libvirt driver
creates a new image from the instance's disk using blockRebase.
Currently this directory is created with 777 permissions making this
directory accessible by all the users in the system.
This patch changes the tempdir permissions so they have the o+x
flag set, which is what libvirt needs to be able to write in it and
Closes-Bug: #1227027 821727e92b66827 6004fc0f84d a196f65eed444cc dc7c02f19f)
Change-Id: I767ff5247b4452
(cherry picked from commit 8a34fc3d48c467a