Comment 20 for bug 1015531

Revision history for this message
Pádraig Brady (p-draigbrady) wrote :

Good point Thierry on the separate CVEs.

Mark nice refactoring in the patch. It's needs this fixup though:

diff --git a/nova/virt/disk/api.py b/nova/virt/disk/api.py
index 8744dcc..730008b 100644
--- a/nova/virt/disk/api.py
+++ b/nova/virt/disk/api.py
@@ -380,7 +380,7 @@ def _inject_net_into_fs(net, fs, execute=None):
     utils.execute('chown', 'root:root', netdir, run_as_root=True)
     utils.execute('chmod', 755, netdir, run_as_root=True)

- netfile = os.path.join('etc', 'interfaces')
+ netfile = os.path.join('etc', 'network', 'interfaces')
     _inject_file_into_fs(fs, netfile, net)