The following commit has been merged in the master branch:
commit b7f4f2023b2b3e1aac46715176940fb50cc75265
Author: Anders Kaseorg <[email protected]>
Date: Thu Oct 31 09:11:59 2013 -0400
Linux: Fix build with CONFIG_UIDGID_STRICT_TYPE_CHECKS (user namespaces)
With CONFIG_UIDGID_STRICT_TYPE_CHECKS (a dependency of user namespace
support, CONFIG_USER_NS) turned on, uid_t and kuid_t are different
types, as are gid_t and kgid_t, and we need to use namespace-dependent
functions to convert between them.
We can’t use init_user_ns as the namespace because it’s GPL-only, so
instead we grab the current user_ns at module load time.
This is required to support kernels with user namespace support. We
don’t yet have full support for independent AFS use by different users
in a multiuser container; that will need to wait for future work.
Change-Id: Icc03f9098dd25b483d406db5167264ba960cdcb7
Signed-off-by: Anders Kaseorg <[email protected]>
Reviewed-on: http://gerrit.openafs.org/10386
Tested-by: BuildBot <[email protected]>
Reviewed-by: Marc Dionne <[email protected]>
Reviewed-by: Derrick Brashear <[email protected]>
acinclude.m4 | 2 +
src/afs/LINUX/osi_compat.h | 12 +++++++-
src/afs/LINUX/osi_cred.c | 8 +++++
src/afs/LINUX/osi_groups.c | 23 ++++++++-------
src/afs/LINUX/osi_machdep.h | 59 ++++++++++++++++++++++++++++++++++-----
src/afs/LINUX/osi_module.c | 8 +++++
src/afs/LINUX/osi_pag_module.c | 8 +++++
src/afs/LINUX/osi_vnodeops.c | 8 +++---
src/cf/linux-test4.m4 | 18 +++++++++++-
9 files changed, 119 insertions(+), 27 deletions(-)
--
OpenAFS Master Repository
_______________________________________________
OpenAFS-cvs mailing list
[email protected]
https://lists.openafs.org/mailman/listinfo/openafs-cvs