linux-mainline/fs
Christian Brauner 4d7ca40901
fs: port vfs{g,u}id helpers to 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:30 +01:00
..
9p fs: port inode_owner_or_capable() to mnt_idmap 2023-01-19 09:24:29 +01:00
adfs
affs
afs
autofs
befs
bfs fs: port inode_init_owner() to mnt_idmap 2023-01-19 09:24:28 +01:00
btrfs fs: port privilege checking helpers to mnt_idmap 2023-01-19 09:24:29 +01:00
cachefiles
ceph
cifs
coda
configfs
cramfs
crypto fs: port inode_owner_or_capable() to mnt_idmap 2023-01-19 09:24:29 +01:00
debugfs
devpts
dlm
ecryptfs
efivarfs
efs
erofs
exfat
exportfs
ext2 quota: port to mnt_idmap 2023-01-19 09:24:29 +01:00
ext4 fs: port fs{g,u}id helpers to mnt_idmap 2023-01-19 09:24:30 +01:00
f2fs fs: port i_{g,u}id_into_vfs{g,u}id() to mnt_idmap 2023-01-19 09:24:29 +01:00
fat fs: port vfs{g,u}id helpers to mnt_idmap 2023-01-19 09:24:30 +01:00
freevxfs
fscache
fuse fs: port i_{g,u}id_into_vfs{g,u}id() to mnt_idmap 2023-01-19 09:24:29 +01:00
gfs2
hfs
hfsplus fs: port inode_init_owner() to mnt_idmap 2023-01-19 09:24:28 +01:00
hostfs
hpfs
hugetlbfs fs: port inode_init_owner() to mnt_idmap 2023-01-19 09:24:28 +01:00
iomap
isofs
jbd2
jffs2
jfs quota: port to mnt_idmap 2023-01-19 09:24:29 +01:00
kernfs
ksmbd fs: port vfs{g,u}id helpers to mnt_idmap 2023-01-19 09:24:30 +01:00
lockd
minix fs: port inode_init_owner() to mnt_idmap 2023-01-19 09:24:28 +01:00
netfs
nfs
nfs_common
nfsd
nilfs2 fs: port inode_init_owner() to mnt_idmap 2023-01-19 09:24:28 +01:00
nls
notify
ntfs
ntfs3 fs: port inode_init_owner() to mnt_idmap 2023-01-19 09:24:28 +01:00
ocfs2 quota: port to mnt_idmap 2023-01-19 09:24:29 +01:00
omfs fs: port inode_init_owner() to mnt_idmap 2023-01-19 09:24:28 +01:00
openpromfs
orangefs
overlayfs fs: port vfs{g,u}id helpers to mnt_idmap 2023-01-19 09:24:30 +01:00
proc
pstore
qnx4
qnx6
quota fs: port vfs{g,u}id helpers to mnt_idmap 2023-01-19 09:24:30 +01:00
ramfs fs: port inode_init_owner() to mnt_idmap 2023-01-19 09:24:28 +01:00
reiserfs quota: port to mnt_idmap 2023-01-19 09:24:29 +01:00
romfs
smbfs_common
squashfs
sysfs
sysv fs: port inode_init_owner() to mnt_idmap 2023-01-19 09:24:28 +01:00
tracefs
ubifs fs: port inode_init_owner() to mnt_idmap 2023-01-19 09:24:28 +01:00
udf fs: port inode_init_owner() to mnt_idmap 2023-01-19 09:24:28 +01:00
ufs fs: port inode_init_owner() to mnt_idmap 2023-01-19 09:24:28 +01:00
unicode
vboxsf
verity
xfs fs: port vfs{g,u}id helpers to mnt_idmap 2023-01-19 09:24:30 +01:00
zonefs quota: port to mnt_idmap 2023-01-19 09:24:29 +01:00
aio.c
anon_inodes.c
attr.c fs: port vfs{g,u}id helpers to mnt_idmap 2023-01-19 09:24:30 +01:00
bad_inode.c
binfmt_elf_fdpic.c
binfmt_elf_test.c
binfmt_elf.c
binfmt_flat.c
binfmt_misc.c
binfmt_script.c
buffer.c
char_dev.c
compat_binfmt_elf.c
coredump.c fs: port i_{g,u}id_into_vfs{g,u}id() to mnt_idmap 2023-01-19 09:24:29 +01:00
d_path.c
dax.c
dcache.c
direct-io.c
drop_caches.c
eventfd.c
eventpoll.c
exec.c fs: port i_{g,u}id_into_vfs{g,u}id() to mnt_idmap 2023-01-19 09:24:29 +01:00
fcntl.c fs: port inode_owner_or_capable() to mnt_idmap 2023-01-19 09:24:29 +01:00
fhandle.c
file_table.c
file.c
filesystems.c
fs_context.c
fs_parser.c
fs_pin.c
fs_struct.c
fs_types.c
fs-writeback.c
fsopen.c
init.c
inode.c fs: port fs{g,u}id helpers to mnt_idmap 2023-01-19 09:24:30 +01:00
internal.h fs: port privilege checking helpers to mnt_idmap 2023-01-19 09:24:29 +01:00
ioctl.c fs: port inode_owner_or_capable() to mnt_idmap 2023-01-19 09:24:29 +01:00
Kconfig
Kconfig.binfmt
kernel_read_file.c
libfs.c
locks.c
Makefile
mbcache.c
mount.h
mpage.c
namei.c fs: port i_{g,u}id_into_vfs{g,u}id() to mnt_idmap 2023-01-19 09:24:29 +01:00
namespace.c fs: port i_{g,u}id_into_vfs{g,u}id() to mnt_idmap 2023-01-19 09:24:29 +01:00
no-block.c
nsfs.c
open.c fs: port vfs{g,u}id helpers to mnt_idmap 2023-01-19 09:24:30 +01:00
pipe.c
pnode.c
pnode.h
posix_acl.c fs: port vfs{g,u}id helpers to mnt_idmap 2023-01-19 09:24:30 +01:00
proc_namespace.c
read_write.c
readdir.c
remap_range.c fs: port i_{g,u}id_into_vfs{g,u}id() to mnt_idmap 2023-01-19 09:24:29 +01:00
select.c
seq_file.c
signalfd.c
splice.c
stack.c
stat.c fs: port i_{g,u}id_into_vfs{g,u}id() to mnt_idmap 2023-01-19 09:24:29 +01:00
statfs.c
super.c
sync.c
sysctls.c
timerfd.c
userfaultfd.c
utimes.c
xattr.c fs: port inode_owner_or_capable() to mnt_idmap 2023-01-19 09:24:29 +01:00