summaryrefslogtreecommitdiffstats
path: root/fs/nfsd/nfs2acl.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2017-05-12 10:11:49 -0400
committerChristoph Hellwig <hch@lst.de>2017-05-15 11:42:31 -0400
commit860bda29b99afdc072a7a796fe81185f7ae85deb (patch)
tree801d2c90df6046bfec0b3be678d84acc2b5637e8 /fs/nfsd/nfs2acl.c
parent7fd38af9cae6aef1dfd28a7d1bd214eb5ddb7d53 (diff)
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 'fs/nfsd/nfs2acl.c')
-rw-r--r--fs/nfsd/nfs2acl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/nfs2acl.c b/fs/nfsd/nfs2acl.c
index 026edfe73fd5..c3f6b8a6b659 100644
--- a/fs/nfsd/nfs2acl.c
+++ b/fs/nfsd/nfs2acl.c
@@ -370,7 +370,7 @@ struct nfsd3_voidargs { int dummy; };
370#define pAT (1+AT) /* post attributes - conditional */ 370#define pAT (1+AT) /* post attributes - conditional */
371#define ACL (1+NFS_ACL_MAX_ENTRIES*3) /* Access Control List */ 371#define ACL (1+NFS_ACL_MAX_ENTRIES*3) /* Access Control List */
372 372
373static struct svc_procedure nfsd_acl_procedures2[] = { 373static const struct svc_procedure nfsd_acl_procedures2[] = {
374 PROC(null, void, void, void, RC_NOCACHE, ST), 374 PROC(null, void, void, void, RC_NOCACHE, ST),
375 PROC(getacl, getacl, getacl, getacl, RC_NOCACHE, ST+1+2*(1+ACL)), 375 PROC(getacl, getacl, getacl, getacl, RC_NOCACHE, ST+1+2*(1+ACL)),
376 PROC(setacl, setacl, attrstat, attrstat, RC_NOCACHE, ST+AT), 376 PROC(setacl, setacl, attrstat, attrstat, RC_NOCACHE, ST+AT),