[PATCH RFC v2 17/42] securityfs: use fc_init_pseudo()

sashiko-bot at kernel.org sashiko-bot at kernel.org
Sat Nov 14 13:22:42 UTC 2026


> 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.
> 
> AppArmor puts a .null device node into securityfs but only ever opens
> it via dentry_open() which doesn't care about SB_I_NODEV.
> 
> Reviewed-by: Alexander Mikhalitsyn <alex at amutable.com>
> Signed-off-by: Christian Brauner (Amutable) <brauner at kernel.org>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261114-work-loop-pseudo-v2-0-98639a2286fb@kernel.org?part=17




More information about the Linux-security-module-archive mailing list