mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00: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:
parent
7fd38af9ca
commit
860bda29b9
12 changed files with 15 additions and 15 deletions
|
@ -237,7 +237,7 @@ struct svc_rqst {
|
|||
|
||||
struct svc_serv * rq_server; /* RPC service definition */
|
||||
struct svc_pool * rq_pool; /* thread pool */
|
||||
struct svc_procedure * rq_procinfo; /* procedure info */
|
||||
const struct svc_procedure *rq_procinfo;/* procedure info */
|
||||
struct auth_ops * rq_authop; /* authentication flavour */
|
||||
struct svc_cred rq_cred; /* auth info */
|
||||
void * rq_xprt_ctxt; /* transport specific context ptr */
|
||||
|
@ -396,7 +396,7 @@ struct svc_program {
|
|||
struct svc_version {
|
||||
u32 vs_vers; /* version number */
|
||||
u32 vs_nproc; /* number of procedures */
|
||||
struct svc_procedure * vs_proc; /* per-procedure info */
|
||||
const struct svc_procedure *vs_proc; /* per-procedure info */
|
||||
unsigned int *vs_count; /* call counts */
|
||||
u32 vs_xdrsize; /* xdrsize needed for this version */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue