mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
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 <[email protected]> Acked-by: Serge Hallyn <[email protected]> Acked-by: Casey Schaufler <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
b7ed698cc9
commit
88e9d34c72
26 changed files with 49 additions and 49 deletions
|
|
@ -28,7 +28,7 @@ static int afs_proc_cells_show(struct seq_file *m, void *v);
|
|||
static ssize_t afs_proc_cells_write(struct file *file, const char __user *buf,
|
||||
size_t size, loff_t *_pos);
|
||||
|
||||
static struct seq_operations afs_proc_cells_ops = {
|
||||
static const struct seq_operations afs_proc_cells_ops = {
|
||||
.start = afs_proc_cells_start,
|
||||
.next = afs_proc_cells_next,
|
||||
.stop = afs_proc_cells_stop,
|
||||
|
|
@ -70,7 +70,7 @@ static void *afs_proc_cell_volumes_next(struct seq_file *p, void *v,
|
|||
static void afs_proc_cell_volumes_stop(struct seq_file *p, void *v);
|
||||
static int afs_proc_cell_volumes_show(struct seq_file *m, void *v);
|
||||
|
||||
static struct seq_operations afs_proc_cell_volumes_ops = {
|
||||
static const struct seq_operations afs_proc_cell_volumes_ops = {
|
||||
.start = afs_proc_cell_volumes_start,
|
||||
.next = afs_proc_cell_volumes_next,
|
||||
.stop = afs_proc_cell_volumes_stop,
|
||||
|
|
@ -95,7 +95,7 @@ static void *afs_proc_cell_vlservers_next(struct seq_file *p, void *v,
|
|||
static void afs_proc_cell_vlservers_stop(struct seq_file *p, void *v);
|
||||
static int afs_proc_cell_vlservers_show(struct seq_file *m, void *v);
|
||||
|
||||
static struct seq_operations afs_proc_cell_vlservers_ops = {
|
||||
static const struct seq_operations afs_proc_cell_vlservers_ops = {
|
||||
.start = afs_proc_cell_vlservers_start,
|
||||
.next = afs_proc_cell_vlservers_next,
|
||||
.stop = afs_proc_cell_vlservers_stop,
|
||||
|
|
@ -119,7 +119,7 @@ static void *afs_proc_cell_servers_next(struct seq_file *p, void *v,
|
|||
static void afs_proc_cell_servers_stop(struct seq_file *p, void *v);
|
||||
static int afs_proc_cell_servers_show(struct seq_file *m, void *v);
|
||||
|
||||
static struct seq_operations afs_proc_cell_servers_ops = {
|
||||
static const struct seq_operations afs_proc_cell_servers_ops = {
|
||||
.start = afs_proc_cell_servers_start,
|
||||
.next = afs_proc_cell_servers_next,
|
||||
.stop = afs_proc_cell_servers_stop,
|
||||
|
|
|
|||
Loading…
Reference in a new issue