zfs/include/os/linux/spl/sys
youzhongyang f224eddf92
Support idmapped mount in user namespace
Linux 5.17 commit torvalds/linux@5dfbfe71e enables "the idmapping 
infrastructure to support idmapped mounts of filesystems mounted 
with an idmapping". Update the OpenZFS accordingly to improve the 
idmapped mount support. 

This pull request contains the following changes:

- xattr setter functions are fixed to take mnt_ns argument. Without
  this, cp -p would fail for an idmapped mount in a user namespace.
- idmap_util is enhanced/fixed for its use in a user ns context.
- One test case added to test idmapped mount in a user ns.

Reviewed-by: Christian Brauner <christian@brauner.io>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Youzhong Yang <yyang@mathworks.com>
Closes #14097
2022-11-08 10:28:56 -08:00
..
acl.h
atomic.h
byteorder.h Reduce false positives from Static Analyzers 2022-09-30 15:30:12 -07:00
callb.h
callo.h
cmn_err.h Reduce false positives from Static Analyzers 2022-09-30 15:30:12 -07:00
condvar.h
cred.h Support idmapped mount in user namespace 2022-11-08 10:28:56 -08:00
ctype.h
debug.h debug: fix output from VERIFY0 assertion 2022-10-28 11:46:44 -07:00
disp.h Cleanup: Use OpenSolaris functions to call scheduler 2022-09-12 09:55:37 -07:00
dkio.h
errno.h Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
fcntl.h
file.h
inttypes.h
isa_defs.h linux isa_defs.h: Don't define _ALIGNMENT_REQUIRED 2022-11-03 09:39:51 -07:00
kmem.h Introduce kmem_scnprintf() 2022-10-29 13:05:11 -07:00
kmem_cache.h Enable -Wwrite-strings 2022-06-29 14:08:54 -07:00
kstat.h Cleanup: Switch to strlcpy from strncpy 2022-09-27 16:35:29 -07:00
list.h
misc.h zed: mark disks as REMOVED when they are removed 2022-09-28 09:48:46 -07:00
mod_os.h
mutex.h
param.h
proc.h
processor.h
procfs_list.h Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
random.h
rwlock.h
shrinker.h Linux 6.0 compat: register_shrinker() now var-arg 2022-08-08 16:18:30 -07:00
sid.h
signal.h
simd.h
stat.h
string.h
sunddi.h
sysmacros.h zfs_rename: support RENAME_* flags 2022-10-28 09:49:20 -07:00
systeminfo.h
taskq.h
thread.h
time.h
timer.h
trace.h Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
trace_spl.h Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
trace_taskq.h Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
tsd.h
types.h Support idmapped mount 2022-10-19 11:17:09 -07:00
types32.h
uio.h
user.h
vfs.h
vmem.h
vmsystm.h Add membar_sync 2022-09-20 15:32:44 -07:00
vnode.h
wait.h
wmsum.h
zmod.h
zone.h