From nobody Fri Apr 3 07:55:41 2026 Received: from mail-yw1-f194.google.com (mail-yw1-f194.google.com [209.85.128.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4B0CC346AC3 for ; Wed, 18 Feb 2026 18:11:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.194 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771438276; cv=none; b=FXA/fG7FlNmu7U2QHIR9cyndkQbLoCFQ0jyd7ng2F2V4FAnrwi7ygmQyKV+Jn1KUNktttFcuUH50+o3iZTkGDB2GFEeDE/Ub1rLTV+AHhBo+nzlNQ1ZAc1hMy7sp8aFxF8ll3VC3WO40Uba8Lz43zvZD+ScnESJpOHjqjzEULWY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771438276; c=relaxed/simple; bh=uGK41uj6PP/iNYJl90nhzFCAJOq4jOu74IyB8IEiN9Q=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=HHNDApRDEvI6Azf7duVxkjyTMgqDnxx4Xt7Ye0APMs6PJwBkE/i6IjDs5B8cQjdAgxkfk8gTHan3F5SG+Q8RpTDKh0WUG75DfQXtoRDcP2ElUJBSk4//YvIOJzRuty8S6VmGuQVOImdhYB3SyaYLbV2iiEdl14UcRIYyanhkzyI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Sxjp1ngr; arc=none smtp.client-ip=209.85.128.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Sxjp1ngr" Received: by mail-yw1-f194.google.com with SMTP id 00721157ae682-794911acb04so1754457b3.0 for ; Wed, 18 Feb 2026 10:11:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1771438273; x=1772043073; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=l1wgGIa8//Y21Q1yl9IMhAVoEJrPKjw/0p7B3ammqNo=; b=Sxjp1ngrbm61KM1SssCgtg53oRQ57xddq335xU0Tr5P9gbgY3OvVgSzoHEjupl7Qiz qeShLNItOV+R3zhWkx+a49rTqh4sozGV9SvpO82vAtoBN+Rj7nV8rVpv8Lk92TbpqBcZ bfCZLNXGQubvFMGEUg5p7dAxzqmq5zAWL9tXQmhlx+F1w8Ka8X8lZdHUhRcCus/5dNPS sOYNDLYVwrz+8awLMJhb4QWtGUz1zXTFYwd5lR0zUkRgiPSYjJ/SsGcHqhck9Ihw//ac 37aNH6AxotXpF3p2ChXd3VIXZJQMovwbHgWXD9xpsMQAaslXWg2P+pLSz/fzEZAiD8Kd RblQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1771438273; x=1772043073; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=l1wgGIa8//Y21Q1yl9IMhAVoEJrPKjw/0p7B3ammqNo=; b=S2Nr/wBmH/R78ATmz9AGdVFaQLN3rwAjzMKi/rVz6UkoxKKhZ/ltkEGJZtYe7ThWuo KJXMvf18JBaAVmtGB9BZwpLySOu3DU6nOpFpc1Ahk7ppFnJHk81PyLowzQ9cPVzF6yNj RTLISR/2Onp8gxHp9spPCEHhs1je3q5noQktOymqzF/zWtEpbfV9Hfk0djCf+ike5Qo+ 8yjDZl+GAZVyvlFJ108DC3C20e9QWa39hdKMLfGT39q1Sr4f2MmOVuwKes03DzJyo4RE QoWXsorkPhIUwvdQbCmZLHMjEkfEeNZmAz6LmIXU1uOtOpH0qhe8dNBK2Bzf/1vvpxDV pdsw== X-Forwarded-Encrypted: i=1; AJvYcCU9iHc26HptiGLs79E+UOmLE786DjkqayYyKvGX2mIzXtdSrNiBmTlcy6TU9I1cSLZGE/eyJoQH0bR+PHI=@vger.kernel.org X-Gm-Message-State: AOJu0Yz+8g3+CYZFv936UZNizyCibrmk6hBge+AXDQlEd0GnQD91O4m/ Ym5HLdZ7kDu4cZ45pqStRHWeRZETnsdlLGdPiIXuKvEPVenrnVGXu5KH X-Gm-Gg: AZuq6aKA9RdG/QyR4oYS61jybP/apdkRVqQExyeydd18gdwYCsayrquoNJPjJ9zHkPo RlPml3CD47/hF/LePffI3VpyrC9jRbVYftiDsTVbGHNEYiw30zAgIjR8F5THluM4l+d1F6d24Tp IKgbnvU0IsiYS8ppZy2mFI0RJPTGvrkpe1JcMVICw6EeiIqOhgTCPG9oqfyQaFQ20g2uByuCvEI lyBWI7rzEhFMMsY0UguqiAXDNM4pIT9WlLLt44HjxgvX41N004W9ABh85zbxTqM4wAvLquuAlSk H9rP2KcdHFfpBzhpwzzVSb3PpPW8u+adWJWHGAXJAjQP3MtqyEPSzf4SAUx78E49porKXhLgCM+ VFQ200YVRHyJ4p03roDrGjQDdiS2Mt42wApBM9XDUfABRDAblYqPY6qDXttLRIUYc5iVx00B7BG PE4tS5E0wk3KwJxF6KNgWiFQ== X-Received: by 2002:a05:690c:dc6:b0:798:3a6:3f4 with SMTP id 00721157ae682-79803a60431mr1995927b3.43.1771438273356; Wed, 18 Feb 2026 10:11:13 -0800 (PST) Received: from localhost ([2a03:2880:25ff:54::]) by smtp.gmail.com with ESMTPSA id 00721157ae682-7966c257ed5sm124246567b3.45.2026.02.18.10.11.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Feb 2026 10:11:13 -0800 (PST) From: Bobby Eshleman Date: Wed, 18 Feb 2026 10:10:38 -0800 Subject: [PATCH net v2 3/3] vsock: document write-once behavior of the child_ns_mode sysctl Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260218-vsock-ns-write-once-v2-3-19e4c50d509a@meta.com> References: <20260218-vsock-ns-write-once-v2-0-19e4c50d509a@meta.com> In-Reply-To: <20260218-vsock-ns-write-once-v2-0-19e4c50d509a@meta.com> To: Stefano Garzarella , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , Stefan Hajnoczi , Shuah Khan , Bobby Eshleman , "Michael S. Tsirkin" , Jonathan Corbet , Shuah Khan Cc: virtualization@lists.linux.dev, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-doc@vger.kernel.org X-Mailer: b4 0.14.3 From: Bobby Eshleman Update the vsock child_ns_mode documentation to include the new the write-once semantics of setting child_ns_mode. The semantics are implemented in a different patch in this series. Signed-off-by: Bobby Eshleman --- Documentation/admin-guide/sysctl/net.rst | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Documentation/admin-guide/sysctl/net.rst b/Documentation/admin= -guide/sysctl/net.rst index c10530624f1e..976a176fb451 100644 --- a/Documentation/admin-guide/sysctl/net.rst +++ b/Documentation/admin-guide/sysctl/net.rst @@ -581,9 +581,9 @@ The init_net mode is always ``global``. child_ns_mode ------------- =20 -Controls what mode newly created child namespaces will inherit. At namespa= ce -creation, ``ns_mode`` is inherited from the parent's ``child_ns_mode``. The -initial value matches the namespace's own ``ns_mode``. +Write-once. Controls what mode newly created child namespaces will inherit= . At +namespace creation, ``ns_mode`` is inherited from the parent's +``child_ns_mode``. The initial value matches the namespace's own ``ns_mode= ``. =20 Values: =20 @@ -594,6 +594,10 @@ Values: their sockets will only be able to connect within their own namespace. =20 +``child_ns_mode`` can only be written once per namespace. Writing the same +value that is already set succeeds. Writing a different value after the fi= rst +write returns ``-EBUSY``. + Changing ``child_ns_mode`` only affects namespaces created after the chang= e; it does not modify the current namespace or any existing children. =20 --=20 2.47.3