lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAOQ4uxjrR9is3E4RqMa3u=Gd-1NMZuBjv+GVJ-eMQiP-Mer9GA@mail.gmail.com>
Date: Tue, 12 Nov 2024 16:56:20 +0100
From: Amir Goldstein <amir73il@...il.com>
To: Erin Shepherd <erin.shepherd@....eu>
Cc: linux-kernel@...r.kernel.org, linux-fsdevel@...r.kernel.org, 
	christian@...uner.io, paul@...l-moore.com, bluca@...ian.org
Subject: Re: [PATCH 1/4] pseudofs: add support for export_ops

On Fri, Nov 1, 2024 at 2:55 PM Erin Shepherd <erin.shepherd@....eu> wrote:
>
> Pseudo-filesystems might reasonably wish to implement the export ops
> (particularly for name_to_handle_at/open_by_handle_at); plumb this
> through pseudo_fs_context
>
> Signed-off-by: Erin Shepherd <erin.shepherd@....eu>

Reviewed-by: Amir Goldstein <amir73il@...il.com>

> ---
>  fs/libfs.c                | 1 +
>  include/linux/pseudo_fs.h | 1 +
>  2 files changed, 2 insertions(+)
>
> diff --git a/fs/libfs.c b/fs/libfs.c
> index 46966fd8bcf9..698a2ddfd0cb 100644
> --- a/fs/libfs.c
> +++ b/fs/libfs.c
> @@ -669,6 +669,7 @@ static int pseudo_fs_fill_super(struct super_block *s, struct fs_context *fc)
>         s->s_blocksize_bits = PAGE_SHIFT;
>         s->s_magic = ctx->magic;
>         s->s_op = ctx->ops ?: &simple_super_operations;
> +       s->s_export_op = ctx->eops;
>         s->s_xattr = ctx->xattr;
>         s->s_time_gran = 1;
>         root = new_inode(s);
> diff --git a/include/linux/pseudo_fs.h b/include/linux/pseudo_fs.h
> index 730f77381d55..2503f7625d65 100644
> --- a/include/linux/pseudo_fs.h
> +++ b/include/linux/pseudo_fs.h
> @@ -5,6 +5,7 @@
>
>  struct pseudo_fs_context {
>         const struct super_operations *ops;
> +       const struct export_operations *eops;
>         const struct xattr_handler * const *xattr;
>         const struct dentry_operations *dops;
>         unsigned long magic;
> --
> 2.46.1
>
>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ