mirror_zfs/include/os/linux
Allan Jude a1aa8f14c8 Revert parts of 938cfeb0f2
When read and writing the UID/GID, we always want the value
relative to the root user namespace, the kernel will take care
of remapping this to the user namespace for us.

Calling from_kuid(user_ns, uid) with a unmapped uid will return -1
as that uid is outside of the scope of that namespace, and will result
in the files inside the namespace all being owned by 'nobody' and not
being allowed to call chmod or chown on them.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Allan Jude <allan@klarasystems.com>
Closes #12263
2022-06-10 09:51:32 -07:00
..
kernel/linux Revert parts of 938cfeb0f2 2022-06-10 09:51:32 -07:00
spl zvol: Support blk-mq for better performance 2022-06-09 08:10:38 -06:00
zfs/sys autoconf: single-step includes 2022-05-10 10:18:51 -07:00
Makefile.am autoconf: single-step includes 2022-05-10 10:18:51 -07:00