sunrpc: mark all struct rpc_procinfo instances as const
struct rpc_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> Acked-by: Trond Myklebust <trond.myklebust@primarydata.com>
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
*/
|
||||
struct rpc_procinfo;
|
||||
struct rpc_message {
|
||||
struct rpc_procinfo * rpc_proc; /* Procedure information */
|
||||
const struct rpc_procinfo *rpc_proc; /* Procedure information */
|
||||
void * rpc_argp; /* Arguments */
|
||||
void * rpc_resp; /* Result */
|
||||
struct rpc_cred * rpc_cred; /* Credentials */
|
||||
|
Reference in New Issue
Block a user