🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #16285

[PATCH RFC v2 16/42] configfs: use fc_init_pseudo()

#16285
From: Christian Brauner
Date: Sat, 14 Nov 2026 13:01
36 lines
10106 bytes
Initialize configfs as a pseudo filesystem. This raises SB_I_PSEUDO and
also SB_I_NOEXEC and SB_I_NODEV. configfs never holds executables or
device nodes.

Reviewed-by: Jan Kara <jack@suse.cz>
Acked-by: Breno Leitao <leitao@debian.org>
Reviewed-by: Alexander Mikhalitsyn <alex@amutable.com>
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
---
 fs/configfs/mount.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/fs/configfs/mount.c b/fs/configfs/mount.c
index d8cac1cbf3bd5..60ba24e7ae2b9 100644
--- a/fs/configfs/mount.c
+++ b/fs/configfs/mount.c
@@ -13,6 +13,7 @@
 #include <linux/module.h>
 #include <linux/mount.h>
 #include <linux/fs_context.h>
+#include <linux/pseudo_fs.h>
 #include <linux/pagemap.h>
 #include <linux/init.h>
 #include <linux/slab.h>
@@ -106,6 +107,7 @@ static const struct fs_context_operations configfs_context_ops = {
 
 static int configfs_init_fs_context(struct fs_context *fc)
 {
+	fc_init_pseudo(fc);
 	fc->ops = &configfs_context_ops;
 	return 0;
 }

-- 
2.53.0
Technical Details
Message-ID: <20261114-work-loop-pseudo-v2-16-98639a2286fb@kernel.org>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-363250-linux-kernel-netdev=dewy.ru
References: <20261114-work-loop-pseudo-v2-0-98639a2286fb@kernel.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-363250-linux-kernel-netdev=dewy.ru
From: brauner@kernel.org (Christian Brauner)
Newsgroups: linux.kernel.netdev
Subject: [PATCH RFC v2 16/42] configfs: use fc_init_pseudo()
Date: Sat, 14 Nov 2026 14:01:57 +0100
Organization: Usenet Network
Message-ID: <20261114-work-loop-pseudo-v2-16-98639a2286fb@kernel.org>
References: <20261114-work-loop-pseudo-v2-0-98639a2286fb@kernel.org>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
	logging-data="1575035"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:bop9IqhilJ9y4ZMOBlu4b+LHNWs= sha256:QSmi1GK3exgEC8rFfziqkhLNub5vExNZmLidckd3q58=
	sha1:8tBHWXYjSBFr55M4CpfJtAFj9fc= sha256:dXvq627jxv5r/UMsvwnxuNLqygA+bHN/NLbhWtO19Bg=
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 F1B501147F0; Sat, 14 Nov 2026 16:10:48 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.501
X-Spam-Status: No, score=-3.501 tagged_above=-9999 required=6.31
	tests=[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 qeAylYq643d2;
	Sat, 14 Nov 2026 16:10:46 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-363250-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 435381147EB; Sat, 14 Nov 2026 16:10:38 +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 7DD426716F; Sat, 14 Nov 2026 13:10:23 +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=1794661656;
	b=K04iGqyQBKiUrY99twvreqpsbmoZ9rU1bmvHFO8ZOn5UtnPwnI/XE9ylXOkwjnRbVJAj
	 GDy4hRraxJL/Uz+g3Q35/9KgKuAh5e1jfVX4JlYdYYhTLbgO3IQW0/Nvl/0aPWFXD7Nr/
	 ptEqAAZuiwqRxLBQ12sU3WtpI9nPx+avkMw8XYnG1zReYp2eUvbsT0DsQUPu8qV2ZKWid
	 edpqGuXNDb5z3hLBIJrF/X3FLz5Rfise+voNq8H6AokwjgQVxTyiJUGHVdCKZ1IHUMI8U
	 xFKZCHqgqsimrNzVtQhX2+WsPmIyDa9/tFxnP3GNbq6DuLlO99a6l2D9mDl987q+MmQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794661656;
	h=X-Original-To:Received:Received:DKIM-Signature:From:Date:Subject:
	 X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
	 List-Unsubscribe:List-Owner:Precedence:MIME-Version:Content-Type:
	 Content-Transfer-Encoding:Message-Id:References:In-Reply-To:To:Cc:
	 X-Mailer:X-Developer-Signature:X-Developer-Key;
	bh=8Ytkno3jTVi+FFRUdCUqmeMcgBru4oLAHALyh9TN4hQ=;
	b=EbujrseKOOU2hLPuMTA2ICJzOtQHT6gWlYxKQMSLnmwQ3aXo8SX4grb6W6bxNz9GUfsd
	 l4WWEP4NZo9vtEFHxzwskCXmqWsBROJMH2svDzR6k0fY4hUGyNcjgZ1qTmnQws6OrWhIO
	 iNZ6MUo4bEQS0IJRaGOBluxfOvGS2kOtPBFy63Wb1i39gbF1JMbLILdb5UowzEnDvTTh9
	 jI8Fay6Ve9Yw80dTmNabDVsN/q8tAsYR0iFLICSA/x6gFiy9pN7ZkdvZqEETNJ+ik0iIi
	 KUuuM5Z8F28BnfJdeFrKFgtBoa6Rm6dGSCI/BL6ziC6hQjYefTxjfR5Bx+gGsmi5O+w==
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=GFHvRmPz;
	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 E53A1606F266;
	Sat, 14 Nov 2026 13:07:35 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=GFHvRmPz
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=1794661650;
	b=jzNfMNB0mTOQQz74tvO2iORTjXsmpaLfEdWZ6GBw/sPE+0OWb7LTg8wqKkQ4pb+KzvA1
	 p82m27nZOsSKth82dsaeJPYFFgGZ8fAF6aFtoOvT0UinlynRGNsqmAeuCY9IkEJy0OW65
	 QKRRkL621h5MegnZ8kmVWN6JzhrSClft4J4+FQWElAME6nojgewH8st2+/s5ZZQOzWVro
	 BBh6pa+XyTQwzoJzAzRZznr17s/F52z7Z+WGHRs2KBGjac3SecH4hitF3lnr5+Ra6XXKu
	 xwhgxBcV6BkquiIw+Rcfi8osXhT+kHDMhS9fj1wOP4Lof3f7i4vYDHcW83iJaFJhuXg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794661650;
	h=Received:DKIM-Signature:From:Date:Subject:MIME-Version:Content-Type:
	 Content-Transfer-Encoding:Message-Id:References:In-Reply-To:To:Cc:
	 X-Mailer:X-Developer-Signature:X-Developer-Key;
	bh=8Ytkno3jTVi+FFRUdCUqmeMcgBru4oLAHALyh9TN4hQ=;
	b=PQAAQgTXmzPRy688Bb3E07yP58e6WZE+h8uMNjc7O4e7738y2maJJSPvD+ghhXZuys6I
	 dSFcLBJotH/u0N9ncBG9ke5z+hONz3zgZx9Gvz/ajFHT1X1kQyXd1rOmxnf+b7IG627dm
	 HSeVMQz65e92xJ2G+c5SgIV8usV7huXZqt5Ay0rIJTqdrXh/LeprhgVqH/H5ur8eu6/BO
	 8j97KJfMw26hTSX1ZCx+hKuEhml0RV0mE4pGGSq7tOH731fpRGM5txua1hUEtkk/Gmywt
	 tjbTX6WcRysEX3TXmBIHWBED6xEiLiiuyTUmLNit5j2wpLWbQSqN+1A9vQTA8yA6Efw==
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=GFHvRmPz;
	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 0A8A8606E9B9;
	Sat, 14 Nov 2026 13:07:29 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id DE82A1F000C5;
	Sat, 14 Nov 2026 13:07:22 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1794661649;
	bh=8Ytkno3jTVi+FFRUdCUqmeMcgBru4oLAHALyh9TN4hQ=;
	h=From:Date:Subject:References:In-Reply-To:To:Cc;
	b=GFHvRmPzrl9JT/XnWgZ6mHZe9H02hsU97t3+ppYOuzxqJMSfmYjPWgdxAi/Wgu8V/
	 wrZy1vRHCZdd0bC3qI68hsdNcKgmQ3IfSWbtHayF9hWHqdbEWqPyzLLH8RbYsc2XCZ
	 dXSM6hWaopdLwe6Tk47JXm5nRSuNnbE8q0uiLEKYHIn3zKgz4gm0hCB1eldl8tNsaw
	 9r5Nn1nPEqIl+dH7clVv0JN4xn0WgIG2u28WaYeRfsivii2u6GrnUxXBTzpaIAi0hh
	 87j2TXLbcazLek+XXOfbey7w3PmofUiagXJteCYNZfZvoshvSXFM6Zg0UUYgny94Iv
	 NhCBc31tgKfxA==
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: <20261114-work-loop-pseudo-v2-0-98639a2286fb@kernel.org>
X-Cc: Jann Horn <jannh@google.com>, Chris Mason <mason@kernel.org>, 
 Josef Bacik <josef@toxicpanda.com>, Christoph Hellwig <hch@lst.de>, 
 linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, 
 linux-nvme@lists.infradead.org, Alexander Viro <viro@zeniv.linux.org.uk>, 
 Jan Kara <jack@suse.cz>, linux-scsi@vger.kernel.org, 
 target-devel@vger.kernel.org, driver-core@lists.linux.dev, 
 linux-mm@kvack.org, bpf@vger.kernel.org, 
 linux-security-module@vger.kernel.org, selinux@vger.kernel.org, 
 apparmor@lists.ubuntu.com, linux-nfs@vger.kernel.org, 
 netdev@vger.kernel.org, fuse-devel@lists.linux.dev, 
 linux-efi@vger.kernel.org, xen-devel@lists.xenproject.org, 
 ocfs2-devel@lists.linux.dev, linux-s390@vger.kernel.org, 
 linuxppc-dev@lists.ozlabs.org, linux-usb@vger.kernel.org, 
 Amir Goldstein <amir73il@gmail.com>, linux-erofs@lists.ozlabs.org, 
 linux-kselftest@vger.kernel.org, 
 "Christian Brauner (Amutable)" <brauner@kernel.org>, 
 Breno Leitao <leitao@debian.org>, Alexander Mikhalitsyn <alex@amutable.com>
X-Mailer: b4 0.17-dev-ce4c1
X-Developer-Signature: v=1; a=openpgp-sha256; l=1052; i=brauner@kernel.org;
 h=from:subject:message-id; bh=Cs6hi+IJv6YL+cABcEV5PmkB4gvNrgirbEkbHavmri4=;
 b=owGbwMvMwCU28Zj0gdSKO4sYT6slMWT9iKmo6zy18/cHrrR7f6484D3B9HbNopIHW//r8rL/b
 7n/ouvYt45SFgYxLgZZMUUWh3aTcLnlPBWbjTI1YOawMoEMYeDiFICJyIgzMsxe+XjzPdujcT/X
 dlcLtp6+NiOv++ZaxhfruqUl7wfkfepm+O/nmC3+VkJi2/4AH0tulRslnlL+mWJ/ffz2RXNuXWh
 +jh0A
X-Developer-Key: i=brauner@kernel.org; a=openpgp;
 fpr=4880B8C9BD0E5106FC070F4F7B3C391EFEA93624