forked from pool/libvirt
d6a22feac8
- Fix potential crasher in virt-aa-helper 2222123-virt-aa-helper-crash.patch - ip link add now needs the 'name' parameter. 433b427-iplink-name.patch - Fixes for virt-sandbox-service to work: - Allow adding virt-sandbox service config to apparmor rules. c264eea-virt-aa-helper-sandbox.patch - fix symlink resolving for containers to start. 72fecf1-lxc-resolve-symlinks.patch - fix unmounting file system if it contains the source to mount. e50457d-lxc-unmount-check.patch - Remove security_driver = "none" in qemu config. This completely disabled all security drivers instead of probing them. - Changed default value of QEMU's security_default_confined to 0 to keep QEMU domains unconfined by default. OBS-URL: https://build.opensuse.org/request/show/262985 OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=422
41 lines
1.5 KiB
Diff
41 lines
1.5 KiB
Diff
From 433b427ff853ab72d32573d415e6ec569b77c7cb Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?C=C3=A9dric=20Bosdonnat?= <cbosdonnat@suse.com>
|
|
Date: Thu, 20 Nov 2014 15:26:35 +0100
|
|
Subject: [PATCH 3/5] ip link needs 'name' in 3.16 to create the veth pair
|
|
|
|
Due to a change (or bug?) in ip link implementation, the command
|
|
'ip link add vnet0...'
|
|
is forced into
|
|
'ip link add name vnet0...'
|
|
The changed command also works on older versions of iproute2, just the
|
|
'name' parameter has been made mandatory.
|
|
---
|
|
src/util/virnetdevveth.c | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/src/util/virnetdevveth.c b/src/util/virnetdevveth.c
|
|
index e9d6f9c..ad30e1d 100644
|
|
--- a/src/util/virnetdevveth.c
|
|
+++ b/src/util/virnetdevveth.c
|
|
@@ -89,7 +89,7 @@ static int virNetDevVethGetFreeNum(int startDev)
|
|
* @veth2: pointer to return name for container end of veth pair
|
|
*
|
|
* Creates a veth device pair using the ip command:
|
|
- * ip link add veth1 type veth peer name veth2
|
|
+ * ip link add name veth1 type veth peer name veth2
|
|
* If veth1 points to NULL on entry, it will be a valid interface on
|
|
* return. veth2 should point to NULL on entry.
|
|
*
|
|
@@ -146,7 +146,7 @@ int virNetDevVethCreate(char** veth1, char** veth2)
|
|
}
|
|
|
|
cmd = virCommandNew("ip");
|
|
- virCommandAddArgList(cmd, "link", "add",
|
|
+ virCommandAddArgList(cmd, "link", "add", "name",
|
|
*veth1 ? *veth1 : veth1auto,
|
|
"type", "veth", "peer", "name",
|
|
*veth2 ? *veth2 : veth2auto,
|
|
--
|
|
2.1.2
|
|
|