Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1052955ybt; Wed, 1 Jul 2020 17:28:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwzu2AnazNx4GbxBIS9a0ygaqsXjHQQUIAflWeaG8nj7LdmsrK1LMoMigwpe9qtK4DprBAK X-Received: by 2002:a05:6402:1c86:: with SMTP id cy6mr18675803edb.30.1593649699377; Wed, 01 Jul 2020 17:28:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593649699; cv=none; d=google.com; s=arc-20160816; b=Kz/Nn+yjogW0KnssgowtNKWDdSz62jsGgIDUj3bLzR5tdoRSB44UU6GqInHWXS/4vG Wf8VjqnZ01UzL4fMRHbN/EfzYTH2bGb5Xus5hHZoWZTb7b+r4olcd5bNKCaYtV6dV4Gp qVoE2i2pI+yigZVKvXwZ3QXrVgY3ODEKbsObWTlRYBa9MF/WR6NdRqNkVQRsQPmCOGCV KRCaQM1q42aC9bjmX+6oO3uvvY9BjxhrGhFRKGqBudlmEVzf+YBcLJuhVT6O+uwR8PC+ 5//XsCrJOK4Y7xW6bYnO4JrBzesRT+jwN7bNpnJFEF+ot6oPs9kxC3NgMaX6Ke+wCk2A 07bQ== 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=YdM9YF2EcbZTi6gnnTTQZixLrf4289RQU1kl1CHLDAI=; b=dQnI5gJgxCFlyqySe2FAvoiVgASngNv7Mo7HNY7mMNJmsiWlYmZUdKRIcV1QePzUym lyywNMXCSygwYo8P5OK6Dt9auJgUTC+zL9jNnOnIxAdD8TLTNixTm7nopSxv/hWEj2QD 354kr2MqynhNuDCYmqAsmmEZ4Tr/Zt2+qByIVGr4d78/oPwtzfvtTsPcFCnv+D1PW5Jn K96exjIq1xeYnV0jYAlDt2MaGImZPU1oKvWqYafShZfQSxmlU0Slsvlku5YrUcA9sRcO fbKXf1kZqcWaLDfGIps2KrRPww/1lPuEy2lOJwHmbrUAQmbANo3yQfpalXgB0XlagIwI 3dFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alliedtelesis.co.nz header.s=mail181024 header.b=P2zFwDBl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alliedtelesis.co.nz Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q25si4922048ejb.116.2020.07.01.17.27.56; Wed, 01 Jul 2020 17:28:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@alliedtelesis.co.nz header.s=mail181024 header.b=P2zFwDBl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alliedtelesis.co.nz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727993AbgGBA1t (ORCPT + 99 others); Wed, 1 Jul 2020 20:27:49 -0400 Received: from gate2.alliedtelesis.co.nz ([202.36.163.20]:47361 "EHLO gate2.alliedtelesis.co.nz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726877AbgGBA1s (ORCPT ); Wed, 1 Jul 2020 20:27:48 -0400 Received: from mmarshal3.atlnz.lc (mmarshal3.atlnz.lc [10.32.18.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by gate2.alliedtelesis.co.nz (Postfix) with ESMTPS id 538508011F; Thu, 2 Jul 2020 12:27:43 +1200 (NZST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alliedtelesis.co.nz; s=mail181024; t=1593649663; bh=YdM9YF2EcbZTi6gnnTTQZixLrf4289RQU1kl1CHLDAI=; h=From:To:Cc:Subject:Date; b=P2zFwDBl3e3FfSCZjosAgsZFKPcn2JRS4SFPYqutyDvPIyHnzYP/HlReJQoewHHp3 bdUkbX+DybCaTVfrAxGhS52T5/U8tQuGHjC55bKNUwq/moEgwJ9bxPUELmvhygpoHJ 8r/6T2ApLbDXLyNk2nhEuNnr5qd9x51/WKcwIwT7tTmb9PT9r9KEHjqxNNZer5aWrv mZfR7wxb9QAwk4zYFk+rjmG9xd563pIKtDRLkH8ykMU2rBHvfckGBpin6FXjDl0BQm +aojR9sMhht+VoMB3MggJvgtherskd+ssNAmewt80ADc93SbAyVi8py7z82QzrxOnj MNemXZnyn7OpQ== Received: from smtp (Not Verified[10.32.16.33]) by mmarshal3.atlnz.lc with Trustwave SEG (v7,5,8,10121) id ; Thu, 02 Jul 2020 12:27:43 +1200 Received: from mattb-dl.ws.atlnz.lc (mattb-dl.ws.atlnz.lc [10.33.25.34]) by smtp (Postfix) with ESMTP id 9DBBA13EDDC; Thu, 2 Jul 2020 12:27:38 +1200 (NZST) Received: by mattb-dl.ws.atlnz.lc (Postfix, from userid 1672) id 2599F4A02A3; Thu, 2 Jul 2020 12:27:40 +1200 (NZST) From: Matt Bennett To: netdev@vger.kernel.org Cc: zbr@ioremap.net, ebiederm@xmission.com, linux-kernel@vger.kernel.org, Matt Bennett Subject: [PATCH 0/5] RFC: connector: Add network namespace awareness Date: Thu, 2 Jul 2020 12:26:30 +1200 Message-Id: <20200702002635.8169-1-matt.bennett@alliedtelesis.co.nz> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable x-atlnz-ls: pat Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Previously the connector functionality could only be used by processes ru= nning in the default network namespace. This meant that any process that uses the conn= ector functionality could not operate correctly when run inside a container. This is a draft = patch series that attempts to now allow this functionality outside of the default network n= amespace. I see this has been discussed previously [1], but am not sure how my chan= ges relate to all of the topics discussed there and/or if there are any unintended side eff= ects from my draft changes. Thanks. [1] https://marc.info/?l=3Dlinux-kernel&m=3D150806196728365&w=3D2 Matt Bennett (5): connector: Use task pid helpers connector: Use 'current_user_ns' function connector: Ensure callback entry is released connector: Prepare for supporting multiple namespaces connector: Create connector per namespace Documentation/driver-api/connector.rst | 6 +- drivers/connector/cn_proc.c | 110 +++++++------- drivers/connector/cn_queue.c | 9 +- drivers/connector/connector.c | 192 ++++++++++++++++++++----- drivers/hv/hv_fcopy.c | 1 + drivers/hv/hv_utils_transport.c | 6 +- drivers/md/dm-log-userspace-transfer.c | 6 +- drivers/video/fbdev/uvesafb.c | 8 +- drivers/w1/w1_netlink.c | 19 +-- include/linux/connector.h | 38 +++-- include/net/net_namespace.h | 4 + kernel/exit.c | 2 +- samples/connector/cn_test.c | 6 +- 13 files changed, 286 insertions(+), 121 deletions(-) --=20 2.27.0