linux/fs/fuse
Christian Brauner 13e83a4923
fs: port ->set_acl() to pass mnt_idmap
Convert to struct mnt_idmap.

Last cycle we merged the necessary infrastructure in
256c8aed2b ("fs: introduce dedicated idmap type for mounts").
This is just the conversion to struct mnt_idmap.

Currently we still pass around the plain namespace that was attached to a
mount. This is in general pretty convenient but it makes it easy to
conflate namespaces that are relevant on the filesystem with namespaces
that are relevent on the mount level. Especially for non-vfs developers
without detailed knowledge in this area this can be a potential source for
bugs.

Once the conversion to struct mnt_idmap is done all helpers down to the
really low-level helpers will take a struct mnt_idmap argument instead of
two namespace arguments. This way it becomes impossible to conflate the two
eliminating the possibility of any bugs. All of the vfs and all filesystems
only operate on struct mnt_idmap.

Acked-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Christian Brauner (Microsoft) <brauner@kernel.org>
2023-01-19 09:24:27 +01:00
..
acl.c fs: port ->set_acl() to pass mnt_idmap 2023-01-19 09:24:27 +01:00
control.c fuse: Remove the control interface for virtio-fs 2022-07-21 16:06:19 +02:00
cuse.c fuse: remove the unneeded result variable 2022-11-23 09:10:49 +01:00
dax.c fuse: avoid unnecessary spinlock bump 2022-07-21 16:02:45 +02:00
dev.c MM patches for 6.2-rc1. 2022-12-13 19:29:45 -08:00
dir.c fs: port ->tmpfile() to pass mnt_idmap 2023-01-19 09:24:27 +01:00
file.c fuse update for 6.2 2022-12-12 20:22:09 -08:00
fuse_i.h fs: port ->set_acl() to pass mnt_idmap 2023-01-19 09:24:27 +01:00
inode.c fuse: retire block-device-based superblock on force unmount 2022-07-27 11:30:31 +02:00
ioctl.c use less confusing names for iov_iter direction initializers 2022-11-25 13:01:55 -05:00
Kconfig dax: remove CONFIG_DAX_DRIVER 2021-12-04 08:58:51 -08:00
Makefile fuse: move ioctl to separate source file 2021-04-12 15:04:30 +02:00
readdir.c fs/fuse: Replace kmap() with kmap_local_page() 2022-11-23 09:10:49 +01:00
virtio_fs.c virtio_fs: Modify format for virtio_fs_direct_access 2022-07-26 10:38:58 +02:00
xattr.c fuse: move fuse_invalidate_attr() into fuse_update_ctime() 2021-10-22 17:03:01 +02:00