linux/fs/nfs
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
..
blocklayout
filelayout
flexfilelayout cred: Do not default to init_cred in prepare_kernel_cred() 2022-11-01 10:04:52 -07:00
cache_lib.c
cache_lib.h
callback.c
callback.h
callback_proc.c
callback_xdr.c
client.c NFS: Avoid memcpy() run-time warning for struct sockaddr overflows 2022-10-27 15:52:10 -04:00
delegation.c nfs: use locks_inode_context helper 2022-11-30 05:08:10 -05:00
delegation.h
dir.c fs: port ->rename() to pass mnt_idmap 2023-01-19 09:24:26 +01:00
direct.c
dns_resolve.c NFS: Avoid memcpy() run-time warning for struct sockaddr overflows 2022-10-27 15:52:10 -04:00
dns_resolve.h NFS: Avoid memcpy() run-time warning for struct sockaddr overflows 2022-10-27 15:52:10 -04:00
export.c
file.c NFS Client Updates for Linux 6.1 2022-10-13 09:58:42 -07:00
fs_context.c nfs: fix possible null-ptr-deref when parsing param 2022-12-06 10:43:24 -05:00
fscache.c use less confusing names for iov_iter direction initializers 2022-11-25 13:01:55 -05:00
fscache.h
getroot.c
inode.c fs: port ->getattr() to pass mnt_idmap 2023-01-19 09:24:25 +01:00
internal.h fs: port ->rename() to pass mnt_idmap 2023-01-19 09:24:26 +01:00
io.c
iostat.h
Kconfig NFSv4.2: Change the default KConfig value for READ_PLUS 2022-12-10 13:24:59 -05:00
Makefile
mount_clnt.c NFS: Avoid memcpy() run-time warning for struct sockaddr overflows 2022-10-27 15:52:10 -04:00
namespace.c fs: port ->getattr() to pass mnt_idmap 2023-01-19 09:24:25 +01:00
netns.h
nfs.h
nfs2super.c
nfs2xdr.c
nfs3_fs.h fs: port ->set_acl() to pass mnt_idmap 2023-01-19 09:24:27 +01:00
nfs3acl.c fs: port ->set_acl() to pass mnt_idmap 2023-01-19 09:24:27 +01:00
nfs3client.c NFS: Avoid memcpy() run-time warning for struct sockaddr overflows 2022-10-27 15:52:10 -04:00
nfs3proc.c fs: rename current get acl method 2022-10-20 10:13:27 +02:00
nfs3super.c
nfs3xdr.c
nfs4_fs.h NFS: avoid spurious warning of lost lock that is being unlocked. 2022-12-06 10:45:11 -05:00
nfs4client.c nfs4: Fix kmemleak when allocate slot failed 2022-10-27 15:52:11 -04:00
nfs4file.c NFS: make sure open context mode have FMODE_EXEC when file open for exec 2022-12-06 10:38:38 -05:00
nfs4getroot.c
nfs4idmap.c cred: Do not default to init_cred in prepare_kernel_cred() 2022-11-01 10:04:52 -07:00
nfs4idmap.h
nfs4namespace.c NFS: Avoid memcpy() run-time warning for struct sockaddr overflows 2022-10-27 15:52:10 -04:00
nfs4proc.c NFS: avoid spurious warning of lost lock that is being unlocked. 2022-12-06 10:45:11 -05:00
nfs4renewd.c
nfs4session.c
nfs4session.h
nfs4state.c NFS client updates for Linux 6.2 2022-12-13 08:44:41 -08:00
nfs4super.c
nfs4sysctl.c
nfs4trace.c
nfs4trace.h NFS client updates for Linux 6.2 2022-12-13 08:44:41 -08:00
nfs4xdr.c NFSv4.2: Fix a memory stomp in decode_attr_security_label 2022-11-27 22:09:59 -05:00
nfs42.h
nfs42proc.c NFSv4.2: Fixup CLONE dest file size for zero-length count 2022-10-27 15:52:10 -04:00
nfs42xattr.c nfs: remove unnecessary (void*) conversions. 2022-10-03 11:26:36 -04:00
nfs42xdr.c NFSv4.2: Fix up READ_PLUS alignment 2022-12-06 12:29:35 -05:00
nfsroot.c NFS: move from strlcpy with unused retval to strscpy 2022-10-03 11:26:36 -04:00
nfstrace.c
nfstrace.h trace: Relocate event helper files 2022-12-10 11:01:12 -05:00
pagelist.c nfs: use locks_inode_context helper 2022-11-30 05:08:10 -05:00
pnfs.c NFS Client Updates for Linux 6.1 2022-10-13 09:58:42 -07:00
pnfs.h NFSv4/flexfiles: Cancel I/O if the layout is recalled or revoked 2022-10-06 09:52:09 -04:00
pnfs_dev.c
pnfs_nfs.c NFS: Avoid memcpy() run-time warning for struct sockaddr overflows 2022-10-27 15:52:10 -04:00
proc.c
read.c
super.c NFS: Avoid memcpy() run-time warning for struct sockaddr overflows 2022-10-27 15:52:10 -04:00
symlink.c
sysctl.c
sysfs.c Driver Core changes for 6.2-rc1 2022-12-16 03:54:54 -08:00
sysfs.h
unlink.c NFS: Fix a race in nfs_call_unlink() 2022-11-27 22:10:00 -05:00
write.c nfs: use locks_inode_context helper 2022-11-30 05:08:10 -05:00