• NeilBrown's avatar
    cred: add cred_fscmp() for comparing creds. · d89b22d4
    NeilBrown authored
    NFS needs to compare to credentials, to see if they can
    be treated the same w.r.t. filesystem access.  Sometimes
    an ordering is needed when credentials are used as a key
    to an rbtree.
    NFS currently has its own private credential management from
    before 'struct cred' existed.  To move it over to more consistent
    use of 'struct cred' we need a comparison function.
    This patch adds that function.
    Signed-off-by: default avatarNeilBrown <neilb@suse.com>
    Signed-off-by: default avatarAnna Schumaker <Anna.Schumaker@Netapp.com>
    d89b22d4
cred.c 22.8 KB