From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.221.45 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794564658; b=3isOjCsxMAHxSbe+ByvbhGG4TPfd9t3xB0DV4mHCgM+1C6Xvfm5P2LldbSxc0oeoaUc6 IS5peB0zobOxYi6a80q04tccjv63ndvjzkrz2Z2G1tPRFtfMazTWuIBoce/Qs/oAWabLe WdorWqM9N9THfYokRMR874AL+7A7uGA2IsFiYJ5276axOf9yZzwF7hxqO0U5qIFW534Xq yZXqhOPYY+j72k2SfSvvAzWJU6g7u1keilnX6eCfqsR68YvGvS4ZZduy3E2TGKuEaGjJu j/2i96aQkqZ/Xd/h21xlVu7TUTX1ZLIJL4vUyX5Fv5Ncc8Py/yh/8RWffuh7H3UOfcw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794564658; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:Content-Transfer-Encoding:User-Agent:MIME-Version; bh=RUn5HyOzv5zK74OCIfLVACQcizuS/sHn5qpIQd0Zvv8=; b=pfpxeIe2IcpHbqg1LtzCJPNfDpgNsWtUlUQLDakaIhIEUq/cH4B0Z+kKnPdrfyg7jKgR IpHd5m0oWRvkAZkcbJmJHR2ZMq7zTxThSYdrkj3mhgccKUekxPXNFY9e3ySS+it8FtyJU EhBLmN6SDqjw5+z3voHArY69hTUJxpJR4HpGwamVZBaQ1ZtgOn7CLzSroY+tnMBDaegTr Svs+qAcQO/6AmiLL1Ms6SxtCL//R84da81ocXU3+NngC27EYehx+o4QdPgmOTRZi/llWL Djrvxwanzp0vBO8SayIwFUMaxeWH6eVf62DInJY1IW52dBRvz5nXOkgP1bMeZE7Ufeg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none header.from=amutable.com; spf=pass smtp.mailfrom=amutable.com; dkim=pass header.d=amutable-com.20260707.gappssmtp.com header.i=@amutable-com.20260707.gappssmtp.com header.a=rsa-sha256 header.s=20260707 header.b=YyixsAnn; arc=none smtp.remote-ip=209.85.221.45 Received: from mail-wr1-f45.google.com (mail-wr1-f45.google.com [209.85.221.45]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1B514606A33A for ; Fri, 13 Nov 2026 10:10:56 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 1B514606A33A Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=amutable.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=amutable.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=amutable-com.20260707.gappssmtp.com header.i=@amutable-com.20260707.gappssmtp.com header.a=rsa-sha256 header.s=20260707 header.b=YyixsAnn Received: by mail-wr1-f45.google.com with SMTP id ffacd0b85a97d-490f38e9688so497678f8f.0 for ; Fri, 13 Nov 2026 02:10:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amutable-com.20260707.gappssmtp.com; s=20260707; t=1794564655; x=1795169455; darn=lists.linux.dev; h=mime-version:user-agent:content-transfer-encoding:content-type :references:in-reply-to:date:cc:to:from:subject:message-id:from:to :cc:subject:date:message-id:reply-to:content-type; bh=RUn5HyOzv5zK74OCIfLVACQcizuS/sHn5qpIQd0Zvv8=; b=YyixsAnnapd/Rvl8+lSQ84+ZBeTkaw3lSU/fX19g+6gwoyuLlKK6O5pBNAaN2kK0V9 pAlc9aYEcGEdP447rFkDIE1Jfd0MxIxafvSKI7iUrbOTbUzGnHFCBux10U0kAQl7l7BY jkYrYsh5ZRWlEgih7tBguRHpmMgebEDwJKuZFSbTgial0etuxKeuNofRZwluQF0x7ULZ 6QIE6hE7AhwB/rQYo9lr5GVEbiXYUz2mqaVCPuVeqp3eEevDcFVfnkOvNsdKWxq0LeGF uNfgjgazNULaHD9VYriD2ZUPJJLdjenC8V76iDgDz4n8gl7Di+StEW8D+aA8weVhaPI8 77VA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1794564655; x=1795169455; h=mime-version:user-agent:content-transfer-encoding:content-type :references:in-reply-to:date:cc:to:from:subject:message-id:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=RUn5HyOzv5zK74OCIfLVACQcizuS/sHn5qpIQd0Zvv8=; b=1thCsUf82xdK6I0VltXHi4Ydaq+j77SVlix1R9v7/8xoK2EqHVazE10RNg76R4ZD58 tI33MDnAZE+J8KqW/04WCMAuLce2OzccTy74BkJhY0AH8mRddAELe8TqA0KgCXgzrBx/ oq46jiSGBhSmnIO1ftx0Wch2Zeoa1lwG57iip/JCxbZZSc2V3+3waWhmawbi/wqrcUNH 8ff/ckp30B3+92iM6SkZMG9HM78WpjUFP9eW7LRcP1xPL02T6t1pzP5GoJ6Nlfva0YgU HfX2hDhdAR0VRFBIEBdlgGfi+gxMezSa4QY1jnlVCoAnUAwaJNyPvZr5//RmhIJb1A5s pC5g== X-Forwarded-Encrypted: i=1; AL+hErEQG0pkA/y4azPkAyKL1KfjnJKurFoWmtPVspvaerot+X0CwvvaiT8eR8KvhG38Qat3dAbtG58xPdniFw==@lists.linux.dev X-Gm-Message-State: APuU4Z98yCYbte4EnVDkzIWdf/XdBorxl2ePVQQH3VtLrWgv6gC2db2Q MDH/Un2ua2enYmXFY3BrAGk3EFrYKjkZrc+gMHf/iWY70mI1+Jx+x8hWO5HhdtFTNKX7tM1cxSD jK/b8f0UaPvk= X-Gm-Gg: AYBFou3mL5oP/Tt/M+EuX1zrme0/RB4dLcdQE7Vug0TkUI+Ywwqkkrc/JKg6/WBx8CE S3OUGp85wM8wYhzVLnRzI5mcmIxeMaSDLUzw1HMUmocrTZ69J5q3CbAAcsotGPVxdKGOwywctOY 4xN36c8RO21Qvk9H+UqJR4jDDfFTJNB4xRUaVSMBmRWQrS/qdaU7GUolcxBHgogEQ8ETcrmmXIY +TLXXsu16c0t1iFhEPGflYl7UEvSvMrtxLoCFtpCYR/dU/RalENfx5NK4qoFQ/fqnZp91AGzJfj BgMoVaqZeUIAsXdGESM5DOOiNSVPZ7RS7/fmmV10JEt7YAIEQyjj1AvUa8977ELb1f8BmhUF5fQ bAut2DDkTGs9dw65SsR58lVV478n3GPT5XyJVCS6JfX8ojqYdoTZkcsK+StRmh6VhU4A39VW0A8 GhvEuFbKJ502IXESkOzP4srC2vD2gYZPW5o3FHbiTDR4Z9wNnBZxY9mVWa0EvmELh/nZ1wJPt5m PCtoNfBk5lecrlEwu3fe/SJ5iuGGMMBKu8S8ppLMuoZjDdonVtzH4sRtpzX3lNVo/lyKn3d9vz0 h/8+nknt9NQ3uhjmeMSp4X+GsJ6K01uiqh3DClHo7Wtlj5xlMK4k7Kxpxdzt8pY= X-Received: by 2002:a05:6000:470e:b0:499:ffd4:f519 with SMTP id ffacd0b85a97d-49b02d4c2cfmr11662822f8f.23.1794564655454; Fri, 13 Nov 2026 02:10:55 -0800 (PST) Received: from [10.0.0.233] (tmo-086-54.customers.d1-online.com. [80.187.86.54]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-49c5a32d336sm4988050f8f.0.2026.11.13.02.10.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Nov 2026 02:10:55 -0800 (PST) Message-ID: <0894c601b3f3c5b92008c6c399faaa539b658307.camel@amutable.com> Subject: Re: [PATCH RFC 17/41] securityfs: use fc_init_pseudo() From: Alexander Mikhalitsyn To: Christian Brauner , linux-fsdevel@vger.kernel.org Cc: Jann Horn , Chris Mason , Josef Bacik , Christoph Hellwig , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, Alexander Viro , Jan Kara , 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 , linux-erofs@lists.ozlabs.org, linux-kselftest@vger.kernel.org Date: Fri, 13 Nov 2026 11:10:52 +0100 In-Reply-To: <20261110-work-loop-pseudo-v1-17-4c998976c6c7@kernel.org> References: <20261110-work-loop-pseudo-v1-0-4c998976c6c7@kernel.org> <20261110-work-loop-pseudo-v1-17-4c998976c6c7@kernel.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.56.2-0+deb13u1 X-Mailing-List: driver-core@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 On Tue, 2026-11-10 at 10:14 +0100, Christian Brauner wrote: > Initialize securityfs as a pseudo filesystem. This raises SB_I_PSEUDO > and > also SB_I_NOEXEC and SB_I_NODEV. securityfs never holds executables > or > device nodes. >=20 > AppArmor puts a .null device node into securityfs but only ever opens > it via dentry_open() which doesn't care about SB_I_NODEV. >=20 > Signed-off-by: Christian Brauner (Amutable) Reviewed-by: Alexander Mikhalitsyn > --- > =C2=A0security/inode.c | 2 ++ > =C2=A01 file changed, 2 insertions(+) >=20 > diff --git a/security/inode.c b/security/inode.c > index 080402367674..93997a9f16fc 100644 > --- a/security/inode.c > +++ b/security/inode.c > @@ -14,6 +14,7 @@ > =C2=A0#include > =C2=A0#include > =C2=A0#include > +#include > =C2=A0#include > =C2=A0#include > =C2=A0#include > @@ -64,6 +65,7 @@ static const struct fs_context_operations > securityfs_context_ops =3D { > =C2=A0 > =C2=A0static int securityfs_init_fs_context(struct fs_context *fc) > =C2=A0{ > + fc_init_pseudo(fc); > =C2=A0 fc->ops =3D &securityfs_context_ops; > =C2=A0 return 0; > =C2=A0}