Unix CM: Generalise token storage
authorSimon Wilkinson <sxw@your-file-system.com>
Fri, 5 Feb 2010 11:12:45 +0000 (11:12 +0000)
committerDerrick Brashear <shadow@dementia.org>
Thu, 26 Aug 2010 16:16:33 +0000 (09:16 -0700)
commitadf2e6e827c6caf55247c5e63b88775393156ae5
tree11e849e6f1a6aeaab6b4be38643d5991dcb49e7d
parent5b71bab4ff0a0f6f1e0cec2c71adfd48b3f35cca
Unix CM: Generalise token storage

This generalises token storage in the Unix CM, so that it isn't
rxkad specific. We add a new, dynamically allocated, list of tokens
hanging off each unixuser structure. Each token is expressed as
a discrimated union keyed on the security class of that token,
with the token's details contained within that Union.

All token handling is performed through a set of functions in
afs_token.c - token access is modified to use this interface
throughout the rest of the code.

Change-Id: I939f3a611bb6e991e1e0d075ced0a59fc6f57693
Reviewed-on: http://gerrit.openafs.org/2580
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
14 files changed:
src/afs/IRIX/osi_idbg.c
src/afs/LINUX/osi_proc.c
src/afs/LINUX24/osi_proc.c
src/afs/afs.h
src/afs/afs_conn.c
src/afs/afs_init.c
src/afs/afs_nfsclnt.c
src/afs/afs_pag_cred.c
src/afs/afs_pioctl.c
src/afs/afs_prototypes.h
src/afs/afs_tokens.c [new file with mode: 0644]
src/afs/afs_user.c
src/libafs/Makefile.common.in
src/libuafs/Makefile.common.in