mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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:
parent
f700c72dd2
commit
499b498810
16 changed files with 31 additions and 30 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue