]> git.karo-electronics.de Git - linux-beck.git/commit
nfsd4: use callback security parameters in create_session
authorJ. Bruce Fields <bfields@redhat.com>
Thu, 1 Nov 2012 20:31:02 +0000 (16:31 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Thu, 8 Nov 2012 00:31:35 +0000 (19:31 -0500)
commitc6bb3ca27d78b902baa143b931a8d9ef53298afa
tree22bf022af19f0f2b39c4e77b8da8210a7e81e92a
parentacb2887e04c2140c2c63c8bf94e0b446efcc7001
nfsd4: use callback security parameters in create_session

We're currently ignoring the callback security parameters specified in
create_session, and just assuming the client wants auth_sys, because
that's all the current linux client happens to care about.  But this
could cause us callbacks to fail to a client that wanted something
different.

For now, all we're doing is no longer ignoring the uid and gid passed in
the auth_sys case.  Further patches will add support for auth_null and
gss (and possibly use more of the auth_sys information; the spec wants
us to use exactly the credential we're passed, though it's hard to
imagine why a client would care).

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4callback.c
fs/nfsd/nfs4state.c
fs/nfsd/state.h