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)
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 virt/disk/ api.py virt/disk/ api.py net_into_ fs(net, fs, execute=None): execute( 'chown' , 'root:root', netdir, run_as_root=True) execute( 'chmod' , 755, netdir, run_as_root=True)
index 8744dcc..730008b 100644
--- a/nova/
+++ b/nova/
@@ -380,7 +380,7 @@ def _inject_
utils.
utils.
- netfile = os.path.join('etc', 'interfaces') file_into_ fs(fs, netfile, net)
+ netfile = os.path.join('etc', 'network', 'interfaces')
_inject_