Article View: linux.kernel.netdev
Article #6258Re: [PATCH v3] tun: Require CAP_NET_ADMIN to attach to an ownerless device
From: patchwork-bot+netdevbpf
Date: Thu, 22 Oct 2026 01:10
Date: Thu, 22 Oct 2026 01:10
27 lines
8828 bytes
8828 bytes
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Tue, 20 Oct 2026 10:48:10 +0100 you wrote:
> From: David Woodhouse <dwmw@amazon.co.uk>
>
> Twenty years ago I made creating a tuntap device require CAP_NET_ADMIN
> in commit ca6bb5d7ab22 ("[NET]: Require CAP_NET_ADMIN to create tuntap
> devices.")
>
> The idea was to allow the permissions on /dev/net/tun to be relaxed to
> 0666 and thus allow owners of tun devices assigned with TUNSETOWNER to
> actually open it and get at their devices.
>
> [...]
Here is the summary with links:
- [v3] tun: Require CAP_NET_ADMIN to attach to an ownerless device
https://git.kernel.org/netdev/net/c/ffdf678dd166
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID:
<179263140807.1392288.12458500793289522283.git-patchwork-notify@kernel.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-350336-linux-kernel-netdev=dewy.ruReferences:
<3c77f88acff5b3c2617b22d64faad15f6212619c.camel@infradead.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-350336-linux-kernel-netdev=dewy.ru From: patchwork-bot+netdevbpf@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH v3] tun: Require CAP_NET_ADMIN to attach to an ownerless device Date: Thu, 22 Oct 2026 01:10:08 +0000 Organization: Usenet Network Message-ID: <179263140807.1392288.12458500793289522283.git-patchwork-notify@kernel.org> References: <3c77f88acff5b3c2617b22d64faad15f6212619c.camel@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="101228"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:hhNIhWBFR0j8qB2dDwu45/Hzti0= sha256:+zhsq6pVbHqqE8shB/Dppuc0DRRNImFTpOYKb8hrCls= sha1:AAFjLKbtVxGG/4iD0V/ZIQWohcs= sha256:AZ6CqJZGqeL3yo3xB/SlcxMlihcDSlMCPgVEenI0Z14= List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 4643E111174; Thu, 22 Oct 2026 04:10:30 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.401 X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=kernel.org X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Rl-wNRCJQj1n; Thu, 22 Oct 2026 04:10:27 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-350336-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id DBBD5111172; Thu, 22 Oct 2026 04:10:18 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id 65D6532DB2; Thu, 22 Oct 2026 01:10:11 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1792631411; b=A2nhuZQK0sPxIa4iiaqz+TuPcAJViULfX7DLu4WqubW5oJSN4DU3d8pinPbRPmx0YkuA aob3+b0kljbcnqw+yG2ybeY6lqZPVir598dGeNOWUUCJTlOUCQvrcYEXaiNtzfzMXmTJd ssf0QdUI1WGGF9z03t1wDQPJbfzxDDgdlOi1xLq9VT12481tmSNkrCRwpy/WB8QBs7BCk n7zZdYOgNHRiFXSV5PHYkojLo01pvNEzCiuse47Y38FkDZJ7oegHvo4uj2xnAWjj9SXic sb7Bvbsk8bnSlkECF1VKN7RJrvI966wE1aQunPEi19kgqPQg/PYiFky1BMm19J4J9gg== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792631411; h=X-Original-To:Received:Received:DKIM-Signature:Received:Content-Type: X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence:MIME-Version: Content-Transfer-Encoding:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; bh=mp0hqhUEAVw1K2G8YqaTwpF9mdbdxvg5Q/4MbdAvbuE=; b=xfGLaqOjbVgeb0xKVW3gA6/7LVFUKUmJapTN03hjU7MwJbHpsouJllWcLhgCHc/Wqp2L 9X5XjOa5BWBpaB+SEhe1SnIej23wtv5zK0iAlnTFZioOzN2VNcI3i7M+h5u5HIingib8s xlPZzaKvwQ/wJcqXM78DnOaJThBnQ0oIxGzUL9xGpdgUDPeNoFs4hgvqtoYrKUwYgPkw+ OTW5J0jNFNllB97Qm5NzoDlvWCKtYVD5Db4tosyd7X3D2jxSp/fm/wsleQGqTL5Mr+B4T /toGUxiM0ksygYTp+UyXnMGkwnQ0vjUnqdmDwX1h2ssRoEEeUn1t9u4W8bCtpaXBp/Q== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=e40FgEJ8; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3764F606A322; Thu, 22 Oct 2026 01:10:11 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=e40FgEJ8 X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1792631410; b=ylAHyt2obIDMH5IqlKlNv07sKaTczUMxEwNJg+Q2bHiyBpv/sfRK9toaKkY6LLkg4PzF rowCq9+vvILBFDkJaFw31lUpNqnwFcmG5QgSfFr5ERw2BMmXyG4ABJD7l7txq6Tn3oQqv aPWB4UV+Hn+auHKYBbuDKtBd15sOb2Uvy0Tb44R5MyHGW2Asyg2AJQyI/ygYgbNlQyQQh 1ioJZ1SG+f8KxO5+31cbypFEi4eOlTlnbtyX4NEva1OpEwLC58an+CIcopzVTSV7PX9xg HWuHRqvXTwtcvqvBmtwcFA1Ua3kzNI0tD/lHb4HOJiiqiqRALEDd+AmILqLzFR2MiqA== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792631410; h=Received:DKIM-Signature:Received:Content-Type:MIME-Version: Content-Transfer-Encoding:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; bh=mp0hqhUEAVw1K2G8YqaTwpF9mdbdxvg5Q/4MbdAvbuE=; b=fOlcSxeSpBMxaBkYTP/P5NWMrvmuvtwclwtv8/DpYFO+JkeudXGVhiNwVFGPbvKozSYv rFWfn+mYuxrRBTndEiplMukmC5Qe7kwCtxoFnRc9rIiP7zEw14JkyZ3rejRowlkYQAVNA oX4QjHMQQYeQ8RjN7O+TvKEh0L7cAVS7gY17144Bv8WKWvUDCXRrRVBUDZwNhh0O8laRv /G2HBJf9QLFLWbz1jNwyHxJX97sna7nSd3SilkX7FNjr3UayNcrEMWY/0dSvBL0kjVTSx FY6GrDcJjXoZK/WdpRv/Dr2J0A7EuxW65k78IGjnZ7J4ETSxe6uzspiExYAwI7r4GHw== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=e40FgEJ8; arc=none smtp.remote-ip=100.103.45.18 X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 11487606A319 for <netdev@vger.kernel.org>; Thu, 22 Oct 2026 01:10:09 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7FF7B1F000C1; Thu, 22 Oct 2026 01:10:09 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1792631409; bh=mp0hqhUEAVw1K2G8YqaTwpF9mdbdxvg5Q/4MbdAvbuE=; h=Subject:From:Date:References:In-Reply-To:To:Cc; b=e40FgEJ8KZ6E7tPCw4ZQjdtDfGKF5ow3fBE8gnkvCA7Y6dMIJIPUmYHbvnfCERF5Y ImwgLTzhUO+cc2gRh7Fbb2PZDhswWnJbohsxWaasypcR0D+BB+lKKyiZ56hwz7BRjF gQBARG8TDOqw1ZIKC9RBRabwEfr3mgZV2MqzYKKMf+s1JnCaR9a9pYMg4KXxQIyrh9 gJ3CFOMDd+WAviBX2gZCieenRcjmIP3vgGRnjlo4p/kSiih2M7qjE2ONs25W8kgwTL u3w5YAdHgkx9qPh3mz3MAPtfCjkHVTjnMX0FgjZMBUeKjp6bbAau1Qan6GCmGvTp/u Nzt6LCvYgVvaQ== X-Received: from [10.30.226.235] (localhost [IPv6:::1]) by aws-us-west-2-korg-oddjob-rhel9-1.codeaurora.org (Postfix) with ESMTP id 77341380A963; Thu, 22 Oct 2026 01:10:09 +0000 (UTC) X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list X-In-Reply-To: <3c77f88acff5b3c2617b22d64faad15f6212619c.camel@infradead.org> X-Cc: netdev@vger.kernel.org, willemdebruijn.kernel@gmail.com, jasowangio@gmail.com, andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, horms@kernel.org, omosnace@redhat.com, stsp2@yandex.ru, luto@kernel.org