mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/
synced 2026-04-17 22:23:45 -04:00
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>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user