]> git.baikalelectronics.ru Git - kernel.git/commit
cred: add cred_fscmp() for comparing creds.
authorNeilBrown <neilb@suse.com>
Mon, 3 Dec 2018 00:30:30 +0000 (11:30 +1100)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Wed, 19 Dec 2018 18:52:44 +0000 (13:52 -0500)
commit8b8e95eccb65bc4c9b50d0e651806dff624e2e20
tree532cce487be9e4d08f4d20c2362c08043311ed4a
parent3efd74dd495d0af2ac809c68d25b42c14485d3dc
cred: add cred_fscmp() for comparing creds.

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: NeilBrown <neilb@suse.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
include/linux/cred.h
kernel/cred.c