OpenAFS Master Repository branch, openafs-stable-1_6_x, updated. openafs-stable-1_6_5-133-g30160ad
Gerrit Code Review
gerrit@openafs.org
Thu, 14 Nov 2013 05:35:57 -0800 (PST)
The following commit has been merged in the openafs-stable-1_6_x branch:
commit 30160ad6eec3c290a770b6069fc106f452e5b4ba
Author: Anders Kaseorg <andersk@mit.edu>
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.
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Reviewed-on: http://gerrit.openafs.org/10386
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Marc Dionne <marc.c.dionne@gmail.com>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
(cherry picked from commit b7f4f2023b2b3e1aac46715176940fb50cc75265)
Change-Id: I55fb7d4ccbed2b4381937270955b117244b80719
Reviewed-on: http://gerrit.openafs.org/10457
Reviewed-by: Marc Dionne <marc.c.dionne@gmail.com>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Tested-by: Anders Kaseorg <andersk@mit.edu>
Reviewed-by: Anders Kaseorg <andersk@mit.edu>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
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