OpenAFS Master Repository branch, master, updated. openafs-devel-1_5_76-4032-gb7f4f20

Gerrit Code Review gerrit@openafs.org
Tue, 5 Nov 2013 11:45:39 -0800 (PST)


The following commit has been merged in the master branch:
commit b7f4f2023b2b3e1aac46715176940fb50cc75265
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.
    
    Change-Id: Icc03f9098dd25b483d406db5167264ba960cdcb7
    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>

 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