On Tue, 2026-11-10 at 10:14 +0100, Christian Brauner wrote: > Initialize efivarfs as a pseudo filesystem. This raises SB_I_PSEUDO > and > also SB_I_NOEXEC and SB_I_NODEV. efivarfs never holds executables or > device nodes. > > Signed-off-by: Christian Brauner (Amutable) <[email protected]>
Reviewed-by: Alexander Mikhalitsyn <[email protected]> > --- > fs/efivarfs/super.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/fs/efivarfs/super.c b/fs/efivarfs/super.c > index 12746ced6dc6..e598d42c5f42 100644 > --- a/fs/efivarfs/super.c > +++ b/fs/efivarfs/super.c > @@ -8,6 +8,7 @@ > #include <linux/efi.h> > #include <linux/fs.h> > #include <linux/fs_context.h> > +#include <linux/pseudo_fs.h> > #include <linux/fs_parser.h> > #include <linux/module.h> > #include <linux/pagemap.h> > @@ -554,6 +555,7 @@ static int efivarfs_init_fs_context(struct > fs_context *fc) > } > > fc->s_fs_info = sfi; > + fc_init_pseudo(fc); > fc->ops = &efivarfs_context_ops; > > return 0;
