Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp473053ybx; Tue, 5 Nov 2019 00:12:25 -0800 (PST) X-Google-Smtp-Source: APXvYqww2hQcBKLEhWjYzsEBkamrBLGUVRXEhR6U02e0l1yvfkm49OCWyIQN7HV5hv1WLbiEAqu+ X-Received: by 2002:a17:906:5859:: with SMTP id h25mr28499353ejs.2.1572941545043; Tue, 05 Nov 2019 00:12:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572941545; cv=none; d=google.com; s=arc-20160816; b=B1bPwqOLx3U78+A9loNIWyWFuoOYoZnU5Q1oSQMNcxjishEQ7akwwQZPWjvdoCVE1W HI3uX8WHqdkFfTzXXB0zdi3meBxh0kBSb+eTPLTpQFGaWq8VDoduwMgFlvcyLYDoqpI3 W70f/oDDOgb+OzEsZ26Uutxvw4U70vdkeBdZetVQVzLImzQsdXw93b63tg9G3LVD4zMd oWHDXBrqO4uBy2JDgVFdMu9cFToOZi+FV+KbXkOAs9v25ZDSx/LIBKzHb1xLC8nBiE+T Dq5EXrtz9S8t2w4jlFsq6zYOE5urq60p1l7wGPOpmTR+cvw30zqez5zK77XF+skqNg0z FxJg== 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=6xSFE4g0gY9czO8TwiEEGqsWaa81e8Ul+cCq6vuH+IA=; b=Egi8CnyE2ilc4GrJyZGF4HcAdr3EDeIJbZtQ/3KMZw3FgvDv/UTio5523ekA7cvoOg I1N6W0yST+0ok+4pVk/T2GjXesc0aw+dvIeZM4Wef0oLzj0mjWnZQdHPcV8CnLTpPx/V SRtPzwCoNuKvZ0MwJZJj/8FvHDHl4d9Xt0jtK5VKh5kO87Ksje1oSk5H+Hfh8lZpRf9i 3eZJH/31F27J9CpRtDDUP0mDHEWU3gn7cxQdTsYZm6EEd+scR24wwSt5/6DCD6HfYSY8 uFQHuCCp8nStcq7xqSzRmA55KQHX43W96Hb8ORZKAnEnAIiClLAXUiJVXERplnlXv/qs K9yA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@norrbonn-se.20150623.gappssmtp.com header.s=20150623 header.b=wlQlXCYO; 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 y32si9528234ede.209.2019.11.05.00.12.00; Tue, 05 Nov 2019 00:12:25 -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=wlQlXCYO; 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 S2388021AbfKEILU (ORCPT + 99 others); Tue, 5 Nov 2019 03:11:20 -0500 Received: from mail-lf1-f45.google.com ([209.85.167.45]:46025 "EHLO mail-lf1-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388074AbfKEILU (ORCPT ); Tue, 5 Nov 2019 03:11:20 -0500 Received: by mail-lf1-f45.google.com with SMTP id v8so14336175lfa.12 for ; Tue, 05 Nov 2019 00:11:18 -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=6xSFE4g0gY9czO8TwiEEGqsWaa81e8Ul+cCq6vuH+IA=; b=wlQlXCYO+/9EbApNjgMhjYp9wpSy75ZPuYAWB8VKQKBX7ARXR1OVtM58CSWg0CoQU5 zxlf1du+2ubetE4QzVTTqJ7rA/hEW3tfRgbKNqUUphn7sxwvWKN+FW0yjcoW/ci4YsmL y3c7LU5tFYjt4UjzxyjTIJ+W2aWft+eBoQDUHYtlLeT1RppLXPiK/61eaI1IglOOh/IN KJefgymntKFYJZbccwXqXePOjo9Rh1XXv11BDb9QKGDMTFeaG/cbIjVnh3A7O152LqcG Abgha4kFeUQPqGC9aT6lKJyAw82Op9hjBwJbHV4D51QkLnjJLpyCFPykLSAfGupH7fZT v5ww== 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=6xSFE4g0gY9czO8TwiEEGqsWaa81e8Ul+cCq6vuH+IA=; b=LS+WvZ2hjCC+C4f3t4EOE1TnwIHF9/nxQdRJvdrYVhqY7LR/xDbHkLie5sEfX5SN2l k/D/Bd2n4ePKYPQYHbhbDF+K8dNTrKHmbtvxRX4tBBGr18JfuHH2BMD6wp4qbSY24sc4 9M8BzWr+OWvLIT4zdRy7oCi1XDTjCwP+yQ/pQepnHHibp7kwasZTMU6GfnQJ8LWmIsK1 60d5T3GV/ttrUriOcbQi8mGOhCaeOIKamfHKdbIsd2fluwz6fkLJ3R0luq1oJe7GLPhv 0J3QU0Ff70kpYSdBGY8mkunCw9CUIpaEd6f7FmfxtEQ9PCCPdaDvtFJXdHEsgsVMqxuj E/1g== X-Gm-Message-State: APjAAAWPnsgLTPk0Rlk9ye4ozws/t2SX7ihASeABoMBWmCRXkVZA7dHd edn4OvYG2TjckBqRlpQjdrJHUji5LwM= X-Received: by 2002:a19:6a03:: with SMTP id u3mr17885682lfu.190.1572941478028; Tue, 05 Nov 2019 00:11:18 -0800 (PST) Received: from mimer.lulea.netrounds.lan ([195.22.87.57]) by smtp.gmail.com with ESMTPSA id m7sm7275986lfp.22.2019.11.05.00.11.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Nov 2019 00:11:17 -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 0/5] Add namespace awareness to Netlink methods Date: Tue, 5 Nov 2019 09:11:07 +0100 Message-Id: <20191105081112.16656-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 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 | 56 ++++++++++++++++++++-------- 3 files changed, 127 insertions(+), 27 deletions(-) -- 2.20.1