aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/isdn/capi/kcapi_proc.c
diff options
context:
space:
mode:
authorJames Morris <jmorris@namei.org>2009-09-22 19:43:43 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2009-09-23 10:39:29 -0400
commit88e9d34c727883d7d6f02cf1475b3ec98b8480c7 (patch)
tree475f544536d52739e0929e7727cab5124e855a06 /drivers/isdn/capi/kcapi_proc.c
parentb7ed698cc9d556306a4088c238e2ea9311ea2cb3 (diff)
seq_file: constify seq_operations
Make all seq_operations structs const, to help mitigate against revectoring user-triggerable function pointers. This is derived from the grsecurity patch, although generated from scratch because it's simpler than extracting the changes from there. Signed-off-by: James Morris <jmorris@namei.org> Acked-by: Serge Hallyn <serue@us.ibm.com> Acked-by: Casey Schaufler <casey@schaufler-ca.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/isdn/capi/kcapi_proc.c')
-rw-r--r--drivers/isdn/capi/kcapi_proc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/isdn/capi/kcapi_proc.c b/drivers/isdn/capi/kcapi_proc.c
index 50ed778f63fc..09d4db764d22 100644
--- a/drivers/isdn/capi/kcapi_proc.c
+++ b/drivers/isdn/capi/kcapi_proc.c
@@ -89,14 +89,14 @@ static int contrstats_show(struct seq_file *seq, void *v)
89 return 0; 89 return 0;
90} 90}
91 91
92static struct seq_operations seq_controller_ops = { 92static const struct seq_operations seq_controller_ops = {
93 .start = controller_start, 93 .start = controller_start,
94 .next = controller_next, 94 .next = controller_next,
95 .stop = controller_stop, 95 .stop = controller_stop,
96 .show = controller_show, 96 .show = controller_show,
97}; 97};
98 98
99static struct seq_operations seq_contrstats_ops = { 99static const struct seq_operations seq_contrstats_ops = {
100 .start = controller_start, 100 .start = controller_start,
101 .next = controller_next, 101 .next = controller_next,
102 .stop = controller_stop, 102 .stop = controller_stop,
@@ -194,14 +194,14 @@ applstats_show(struct seq_file *seq, void *v)
194 return 0; 194 return 0;
195} 195}
196 196
197static struct seq_operations seq_applications_ops = { 197static const struct seq_operations seq_applications_ops = {
198 .start = applications_start, 198 .start = applications_start,
199 .next = applications_next, 199 .next = applications_next,
200 .stop = applications_stop, 200 .stop = applications_stop,
201 .show = applications_show, 201 .show = applications_show,
202}; 202};
203 203
204static struct seq_operations seq_applstats_ops = { 204static const struct seq_operations seq_applstats_ops = {
205 .start = applications_start, 205 .start = applications_start,
206 .next = applications_next, 206 .next = applications_next,
207 .stop = applications_stop, 207 .stop = applications_stop,
@@ -264,7 +264,7 @@ static int capi_driver_show(struct seq_file *seq, void *v)
264 return 0; 264 return 0;
265} 265}
266 266
267static struct seq_operations seq_capi_driver_ops = { 267static const struct seq_operations seq_capi_driver_ops = {
268 .start = capi_driver_start, 268 .start = capi_driver_start,
269 .next = capi_driver_next, 269 .next = capi_driver_next,
270 .stop = capi_driver_stop, 270 .stop = capi_driver_stop,