]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix interaction between userns uid/gid and SA
authorNikolay Borisov <n.borisov.lkml@gmail.com>
Wed, 3 Aug 2016 21:31:08 +0000 (00:31 +0300)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 8 Aug 2016 17:47:43 +0000 (10:47 -0700)
commit64aefee1b847b747147016c039f5b0e276a9e1b7
tree09896b05f5b44ce499c75148558c8ff347bc0eca
parent938cfeb0f27303721081223816d4f251ffeb1767
Fix interaction between userns uid/gid and SA

* When the uid/gid change is handled in zfs_setattr we want to
actually adjust the user passed uid to a KUID and write that to disk.

* In trace points use the i_uid member without doing translation,
since it has already been performed.

* Use kuid in zfs_aclset_common

Signed-off-by: Nikolay Borisov <n.borisov.lkml@gmail.com>
Signed-off-by: Chunwei Chen <david.chen@osnexus.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #4928
include/sys/trace_acl.h
module/zfs/zfs_acl.c
module/zfs/zfs_vnops.c