]> git.karo-electronics.de Git - karo-tx-linux.git/commit
NFSv4.1: Enable state protection
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 20 May 2013 16:24:03 +0000 (12:24 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 20 May 2013 18:20:17 +0000 (14:20 -0400)
commitbf845dadb88d1ade2ec643e49a48ba70b4966012
tree3f97af37c09c9b5caf5e3b411b3ae827afc80856
parent17aaa76f87599e315c1f635f18072dda4182fd3b
NFSv4.1: Enable state protection

Use the EXCHGID4_FLAG_BIND_PRINC_STATEID exchange_id flag to enable
stateid protection. This means that if we create a stateid using a
particular principal, then we must use the same principal if we
want to change that state.
IOW: if we OPEN a file using a particular credential, then we have
to use the same credential in subsequent OPEN_DOWNGRADE, CLOSE,
or DELEGRETURN operations that use that stateid.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/nfs4proc.c