diff options
author | Christoph Hellwig <hch@lst.de> | 2017-05-12 16:11:49 +0200 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2017-05-15 17:42:31 +0200 |
commit | 860bda29b99afdc072a7a796fe81185f7ae85deb (patch) | |
tree | 801d2c90df6046bfec0b3be678d84acc2b5637e8 /include/linux/lockd | |
parent | 7fd38af9cae6aef1dfd28a7d1bd214eb5ddb7d53 (diff) | |
download | linux-860bda29b99afdc072a7a796fe81185f7ae85deb.tar.gz linux-860bda29b99afdc072a7a796fe81185f7ae85deb.tar.bz2 linux-860bda29b99afdc072a7a796fe81185f7ae85deb.zip |
sunrpc: mark all struct svc_procinfo instances as const
struct svc_procinfo contains function pointers, and marking it as
constant avoids it being able to be used as an attach vector for
code injections.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'include/linux/lockd')
-rw-r--r-- | include/linux/lockd/lockd.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/lockd/lockd.h b/include/linux/lockd/lockd.h index 41f7b6a04d69..3eca67728366 100644 --- a/include/linux/lockd/lockd.h +++ b/include/linux/lockd/lockd.h @@ -192,9 +192,9 @@ struct nlm_block { * Global variables */ extern const struct rpc_program nlm_program; -extern struct svc_procedure nlmsvc_procedures[]; +extern const struct svc_procedure nlmsvc_procedures[]; #ifdef CONFIG_LOCKD_V4 -extern struct svc_procedure nlmsvc_procedures4[]; +extern const struct svc_procedure nlmsvc_procedures4[]; #endif extern int nlmsvc_grace_period; extern unsigned long nlmsvc_timeout; |