NFS/NFSD/SUNRPC: replace generic creds with 'struct cred'.
SUNRPC has two sorts of credentials, both of which appear as "struct rpc_cred". There are "generic credentials" which are supplied by clients such as NFS and passed in 'struct rpc_message' to indicate which user should be used to authorize the request, and there are low-level credentials such as AUTH_NULL, AUTH_UNIX, AUTH_GSS which describe the credential to be sent over the wires. This patch replaces all the generic credentials by 'struct cred' pointers - the credential structure used throughout Linux. For machine credentials, there is a special 'struct cred *' pointer which is statically allocated and recognized where needed as having a special meaning. A look-up of a low-level cred will map this to a machine credential. Signed-off-by:NeilBrown <neilb@suse.com> Acked-by:
J. Bruce Fields <bfields@redhat.com> Signed-off-by:
Anna Schumaker <Anna.Schumaker@Netapp.com>
Showing
- fs/lockd/clntproc.c 3 additions, 3 deletionsfs/lockd/clntproc.c
- fs/nfs/blocklayout/blocklayout.c 1 addition, 1 deletionfs/nfs/blocklayout/blocklayout.c
- fs/nfs/delegation.c 13 additions, 15 deletionsfs/nfs/delegation.c
- fs/nfs/delegation.h 5 additions, 5 deletionsfs/nfs/delegation.h
- fs/nfs/flexfilelayout/flexfilelayout.c 11 additions, 22 deletionsfs/nfs/flexfilelayout/flexfilelayout.c
- fs/nfs/flexfilelayout/flexfilelayout.h 4 additions, 4 deletionsfs/nfs/flexfilelayout/flexfilelayout.h
- fs/nfs/flexfilelayout/flexfilelayoutdev.c 8 additions, 8 deletionsfs/nfs/flexfilelayout/flexfilelayoutdev.c
- fs/nfs/inode.c 4 additions, 7 deletionsfs/nfs/inode.c
- fs/nfs/internal.h 4 additions, 4 deletionsfs/nfs/internal.h
- fs/nfs/nfs3proc.c 2 additions, 16 deletionsfs/nfs/nfs3proc.c
- fs/nfs/nfs4_fs.h 28 additions, 28 deletionsfs/nfs/nfs4_fs.h
- fs/nfs/nfs4client.c 2 additions, 2 deletionsfs/nfs/nfs4client.c
- fs/nfs/nfs4proc.c 72 additions, 95 deletionsfs/nfs/nfs4proc.c
- fs/nfs/nfs4renewd.c 2 additions, 2 deletionsfs/nfs/nfs4renewd.c
- fs/nfs/nfs4session.c 2 additions, 3 deletionsfs/nfs/nfs4session.c
- fs/nfs/nfs4state.c 47 additions, 45 deletionsfs/nfs/nfs4state.c
- fs/nfs/pagelist.c 1 addition, 1 deletionfs/nfs/pagelist.c
- fs/nfs/pnfs.c 7 additions, 7 deletionsfs/nfs/pnfs.c
- fs/nfs/pnfs.h 5 additions, 5 deletionsfs/nfs/pnfs.h
- fs/nfs/pnfs_dev.c 2 additions, 2 deletionsfs/nfs/pnfs_dev.c
Loading
Please register or sign in to comment