|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
From 3125b3ef5db70d45882c7d6f617705802c5f939e Mon Sep 17 00:00:00 2001
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
From: Tom Gundersen <teg@jklm.no>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
Date: Thu, 28 Aug 2014 12:15:51 +0200
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
Subject: [PATCH] nspawn: fix --network-interface
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
Use SETLINK when modifying an existing link.
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
---
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
TODO | 2 --
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
src/nspawn/nspawn.c | 2 +-
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
2 files changed, 1 insertion(+), 3 deletions(-)
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
diff --git a/TODO b/TODO
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
index bc81a70eb1..a00c13dab2 100644
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
--- a/TODO
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+++ b/TODO
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
@@ -24,8 +24,6 @@ External:
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
Features:
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
-* nspawn --network-interface= doesn't work...
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
-
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
* dbus: add new message hdr field for allowing interactive auth, write spec for it. update dbus spec to mandate that unknown flags *must* be ignored...
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
* maybe introduce AssertXYZ= similar to ConditionXYZ= that causes a unit to fail (instead of skipping it) if some condition is not true...
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
index 56d9cc68c6..5af89c9b32 100644
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
--- a/src/nspawn/nspawn.c
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+++ b/src/nspawn/nspawn.c
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
@@ -1886,7 +1886,7 @@ static int move_network_interfaces(pid_t pid) {
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
if (ifi < 0)
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
return ifi;
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
- r = sd_rtnl_message_new_link(rtnl, &m, RTM_NEWLINK, ifi);
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ r = sd_rtnl_message_new_link(rtnl, &m, RTM_SETLINK, ifi);
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
if (r < 0) {
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
log_error("Failed to allocate netlink message: %s", strerror(-r));
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
return r;
|