diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2017-08-01 18:00:06 +0200 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2017-08-25 04:13:50 +0200 |
commit | afea5657c20b11ec9f895ac5cc33b560fb1e0276 (patch) | |
tree | 33068b83b4eabc452bd4a69b5fa6f31a16ce9354 /fs/nfsd/nfssvc.c | |
parent | nfsd: Const-ify NFSv4 encoding and decoding ops arrays (diff) | |
download | linux-afea5657c20b11ec9f895ac5cc33b560fb1e0276.tar.xz linux-afea5657c20b11ec9f895ac5cc33b560fb1e0276.zip |
sunrpc: Const-ify struct sv_serv_ops
Close an attack vector by moving the arrays of per-server methods to
read-only memory.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/nfssvc.c')
-rw-r--r-- | fs/nfsd/nfssvc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/nfssvc.c b/fs/nfsd/nfssvc.c index 063ae7de2c12..7e3af3ef0917 100644 --- a/fs/nfsd/nfssvc.c +++ b/fs/nfsd/nfssvc.c @@ -475,7 +475,7 @@ static int nfsd_get_default_max_blksize(void) return ret; } -static struct svc_serv_ops nfsd_thread_sv_ops = { +static const struct svc_serv_ops nfsd_thread_sv_ops = { .svo_shutdown = nfsd_last_thread, .svo_function = nfsd, .svo_enqueue_xprt = svc_xprt_do_enqueue, |