OpenAFS Master Repository branch, master, updated. openafs-devel-1_5_66-41-geb8e55b
Gerrit Code Review
gerrit@openafs.org
Mon, 9 Nov 2009 08:19:30 -0800 (PST)
The following commit has been merged in the master branch:
commit eb8e55bba7740a87e07ef07bb4b789e6d4e36f0d
Author: Marc Dionne <marc.c.dionne@gmail.com>
Date: Thu Oct 29 19:23:28 2009 -0400
Unix client: wrappers for credentials structure access
This patch introduces and makes use of wrappers for access
to credentials structure members:
cr_uid (afs_ucred_t *)
cr_ruid(afs_ucred_t *)
cr_gid (afs_ucred_t *)
cr_rgid(afs_ucred_t *)
cr_group_info(afs_ucred_t *)
Inline functions are also introduced to set values:
set_cr_uid (afs_ucred_t *, uid_t)
set_cr_ruid(afs_ucred_t *, uid_t)
set_cr_gid (afs_ucred_t *, gid_t)
set_cr_rgid(afs_ucred_t *, gid_t)
set_cr_group_info(afs_ucred_t *, struct group_info *)
This will allow an architecture to make use of an alternate
structure to hold credentials. In particular it will allow
the linux client to be modified to use the kernel credentials
structure directly instead of shadowing it into our own local
structure.
There should be no functional change.
Change-Id: I7739196a0691a9c30887043b085e4878e88780ae
Reviewed-on: http://gerrit.openafs.org/768
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
src/afs/DARWIN/osi_vnodeops.c | 2 +-
src/afs/IRIX/osi_vnodeops.c | 2 +-
src/afs/LINUX/osi_cred.c | 46 +++++++++++++++++++-------------------
src/afs/LINUX/osi_groups.c | 10 ++++----
src/afs/LINUX/osi_machdep.h | 6 +++++
src/afs/LINUX/osi_nfssrv.c | 26 +++++++++++-----------
src/afs/LINUX24/osi_cred.c | 32 +++++++++++++-------------
src/afs/LINUX24/osi_machdep.h | 6 +++++
src/afs/UKERNEL/afs_usrops.c | 28 +++++++++++-----------
src/afs/VNOPS/afs_vnop_create.c | 2 +-
src/afs/VNOPS/afs_vnop_dirops.c | 2 +-
src/afs/VNOPS/afs_vnop_write.c | 2 +-
src/afs/afs.h | 22 ++++++++++++++++++
src/afs/afs_disconnected.c | 2 +-
src/afs/afs_dynroot.c | 4 +-
src/afs/afs_nfsclnt.c | 13 ++++++-----
src/afs/afs_osi.c | 2 +-
src/afs/afs_osi_gcpags.c | 10 ++++----
src/afs/afs_osi_pag.c | 14 ++++++------
src/afs/afs_pag_call.c | 2 +-
src/afs/afs_pag_cred.c | 4 +-
src/afs/afs_pioctl.c | 26 +++++++++++-----------
src/afs/afs_user.c | 4 +-
src/afs/exporter.h | 2 +-
src/afsweb/nsafs.c | 8 +++---
25 files changed, 156 insertions(+), 121 deletions(-)
--
OpenAFS Master Repository