nfsd: Const-ify NFSv4 encoding and decoding ops arrays
authorChuck Lever <chuck.lever@oracle.com>
Tue, 1 Aug 2017 15:59:58 +0000 (11:59 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Fri, 25 Aug 2017 02:13:50 +0000 (22:13 -0400)
commitc1df609d9dcec5dcb89ee3091edc3671da1c9996
treeb4c7ea7ca342e71533893e218910664324e8dc75
parent2412e927604e0af7e17ae4b688b85a1e87e378fe
nfsd: Const-ify NFSv4 encoding and decoding ops arrays

Close an attack vector by moving the arrays of encoding and decoding
methods to read-only memory.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4xdr.c