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/60550 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=9bd7fff8c01 60057643cfc37c5 e2b1cd3337d6aa
Committed: https:/
Submitter: Jenkins
Branch: stable/grizzly
commit 9bd7fff8c016005 7643cfc37c5e2b1 cd3337d6aa
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