Linux 5.12 compat: idmapped mounts
commite2a8296131e94ad785f5564156ed2db1fdb2e080
authorColeman Kane <ckane@colemankane.org>
Sat, 20 Mar 2021 04:00:59 +0000 (20 00:00 -0400)
committerGitHub <noreply@github.com>
Sat, 20 Mar 2021 04:00:59 +0000 (19 21:00 -0700)
treea06b88b9027c0d410c34bfc9691e89e0a212e2a6
parent330c6c052314b530e5b271bc731d4040570c5fb0
Linux 5.12 compat: idmapped mounts

In Linux 5.12, the filesystem API was modified to support ipmapped
mounts by adding a "struct user_namespace *" parameter to a number
functions and VFS handlers. This change adds the needed autoconf
macros to detect the new interfaces and updates the code appropriately.
This change does not add support for idmapped mounts, instead it
preserves the existing behavior by passing the initial user namespace
where needed.  A subsequent commit will be required to add support
for idmapped mounted.

Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Co-authored-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Coleman Kane <ckane@colemankane.org>
Closes #11712
22 files changed:
config/kernel-generic_fillattr.m4 [new file with mode: 0644]
config/kernel-inode-create.m4
config/kernel-inode-getattr.m4
config/kernel-is_owner_or_cap.m4
config/kernel-mkdir-umode-t.m4 [deleted file]
config/kernel-mkdir.m4 [new file with mode: 0644]
config/kernel-mknod.m4 [new file with mode: 0644]
config/kernel-rename.m4
config/kernel-setattr-prepare.m4
config/kernel-symlink.m4 [new file with mode: 0644]
config/kernel-xattr-handler.m4
config/kernel.m4
include/os/linux/kernel/linux/vfs_compat.h
include/os/linux/kernel/linux/xattr_compat.h
include/os/linux/zfs/sys/zfs_vnops_os.h
include/os/linux/zfs/sys/zpl.h
module/os/linux/zfs/policy.c
module/os/linux/zfs/zfs_vnops_os.c
module/os/linux/zfs/zpl_ctldir.c
module/os/linux/zfs/zpl_file.c
module/os/linux/zfs/zpl_inode.c
module/os/linux/zfs/zpl_xattr.c