Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp157785ybx; Tue, 5 Nov 2019 21:40:28 -0800 (PST) X-Google-Smtp-Source: APXvYqxxpk4QZGxjnYHX/3j59+o08u5hxkO+V4GILKK53u+Ua5uAMwbIXkGzYe+Fs7wcLw9eepzs X-Received: by 2002:a17:906:e0d5:: with SMTP id gl21mr17315988ejb.292.1573018828221; Tue, 05 Nov 2019 21:40:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573018828; cv=none; d=google.com; s=arc-20160816; b=dLxt9NtqP0baLUeMhApfxm/1ik1nVQuQt6WSp4AH/Sf5FQlTH5KTBzSPVBihMhe+rg RK3oXkNRmaXjHsWKMz42jhssOBmnEvU3ny5WpQWMz1+VvNclvOv+b1Du8veiuYuSUk7C APK/QJsU9zQaIk+7QpGedk4WABTg7Y2Gr/nETctuqEXxh7mmTHOJF903KNCW6gNlH2Aw 8Ek2v1XiDe0vlPxU2/z+AVedWgXNEtjxcKVfoB11ehlQPpeMaEmcADwGvwUk2/r1EpPK dtsKCLvjHTiDYZKfSoubcdoifvsZFSxN7zZfgGOJLVK+Bproe8xUi802+OdyBhsjIY3e yyOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=GHIf5mDgZLljmFUkOq24Gp9TCbOM9O3cWPqt9cOVGZ8=; b=QxAFaRA4ZiUHgCQV7tnWQeFk2O0mc5JTq6iy0nSGyUpbwGkXbHMV2xBs6SkphUh0bY UkwC3OibPZdPHTa6Fw2hY7DFM51mAV4jEEisiY3jzAXOOF07tkGk3g/WsFikRCESWacG z019mzojKRcC4A5TPMUSVxf+Omkmy57HiaroeAqAiJ9PEm4m0cwR4NJYo7o0+WlcYfvU xLpg3JPmtoHvpmtb9MYVFW2XLq+/WkctvAHTV4KWRtBe/wP/1J+JmcqjDziW+DRTvFca 7rHGGsRAc4La+f1DSSO42VKkKX7IzIqOE88oEtavDmqxdduqnZDGge9xzl5gMeBu30cO uovg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@norrbonn-se.20150623.gappssmtp.com header.s=20150623 header.b=Lpn0EaXP; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i10si14388701ejj.8.2019.11.05.21.40.04; Tue, 05 Nov 2019 21:40:28 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@norrbonn-se.20150623.gappssmtp.com header.s=20150623 header.b=Lpn0EaXP; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726050AbfKFFja (ORCPT + 99 others); Wed, 6 Nov 2019 00:39:30 -0500 Received: from mail-lf1-f48.google.com ([209.85.167.48]:39589 "EHLO mail-lf1-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725792AbfKFFj3 (ORCPT ); Wed, 6 Nov 2019 00:39:29 -0500 Received: by mail-lf1-f48.google.com with SMTP id 195so16982519lfj.6 for ; Tue, 05 Nov 2019 21:39:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=norrbonn-se.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=GHIf5mDgZLljmFUkOq24Gp9TCbOM9O3cWPqt9cOVGZ8=; b=Lpn0EaXP7QQ2PPid317+Zmtpz4I05Prd/oE0N7JbiAUP02AFeP7k0qv11Kb/1/zF9X tM9vBjnczPDzcydBssC0xmyStZ1Ru0ZPkFVDdYwQEFjBWpjsmF1N57OGiRbYQhASQeXJ Zkp2HV99KLf59yquoHDT4Z9zSoIRvCi+OYAOisLwNV94PKYgkVpqcHxhUY0FCiaybkD8 6MKTzl7w00KErFvhGVKXU3bNq9cSyQkQ4ElAj1Y58mAfpdN1sQbe8kL4s64j10zB7f1x UtnDg2qzKgx1bMtX0UY/DvoRUt5rUeg7mKyEzRfPIrFTp23Evt6YIQOe0oNBfGcNIX6R HE6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=GHIf5mDgZLljmFUkOq24Gp9TCbOM9O3cWPqt9cOVGZ8=; b=jkNkbCsnofGKFFZdBU4bwxG3eBAQjJYgY+bnrhko9lrhm+q+VODF3/sJI25QDNL/at b+bbw8TQx5/TNqbMB324A+Wl8NZWI1dIsCIuj1KRS0gxXKO0jwHY99SF7CxvuYaxi1KG zzz0/QnH85k46mGMn7iIDH9AFQ8qZVW/2nVa14Hac4X9AwvfjrsGQkFZ9srTWsPWmVCB GRiJ7SsNde4Ta0cgkj1PcIFgPpL71yTsui+B1QsjWSXCcK/0PK2oHHzqLt+K2FbEY7yn 6c5jlBNupaob0tTVOhjvmGvnusKtrR/4s61oVNB4uWL5/gV1+DniE1crcv5SePIzO1NP Ql6g== X-Gm-Message-State: APjAAAUCO8d6AoFzqTIRq2QASPnkchuMUS7q/vxnp732hWRkLaHCPkZ5 /pxMfs5l6ozX5XbojRVfkpJjPw== X-Received: by 2002:ac2:44a9:: with SMTP id c9mr6517246lfm.26.1573018767595; Tue, 05 Nov 2019 21:39:27 -0800 (PST) Received: from mimer.lan (h-137-65.A159.priv.bahnhof.se. [81.170.137.65]) by smtp.gmail.com with ESMTPSA id c22sm754737ljk.43.2019.11.05.21.39.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Nov 2019 21:39:26 -0800 (PST) From: Jonas Bonn To: nicolas.dichtel@6wind.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: davem@davemloft.net, Jonas Bonn Subject: [PATCH v2 0/5] Add namespace awareness to Netlink methods Date: Wed, 6 Nov 2019 06:39:18 +0100 Message-Id: <20191106053923.10414-1-jonas@norrbonn.se> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Changed in v2: - address comment from Nicolas - add accumulated ACK's Currently, Netlink has partial support for acting outside of the current namespace. It appears that the intention was to extend this to all the methods eventually, but it hasn't been done to date. With this series RTM_SETLINK, RTM_NEWLINK, RTM_NEWADDR, and RTM_NEWNSID are extended to respect the selection of the namespace to work in. /Jonas Jonas Bonn (5): rtnetlink: allow RTM_SETLINK to reference other namespaces rtnetlink: skip namespace change if already effect rtnetlink: allow RTM_NEWLINK to act upon interfaces in arbitrary namespaces net: ipv4: allow setting address on interface outside current namespace net: namespace: allow setting NSIDs outside current namespace net/core/net_namespace.c | 19 ++++++++++ net/core/rtnetlink.c | 79 ++++++++++++++++++++++++++++++++++------ net/ipv4/devinet.c | 58 +++++++++++++++++++++-------- 3 files changed, 129 insertions(+), 27 deletions(-) -- 2.20.1