seq_file: constify seq_operations
authorJames Morris <jmorris@namei.org>
Tue, 22 Sep 2009 23:43:43 +0000 (16:43 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 23 Sep 2009 14:39:29 +0000 (07:39 -0700)
commit88e9d34c727883d7d6f02cf1475b3ec98b8480c7
tree475f544536d52739e0929e7727cab5124e855a06
parentb7ed698cc9d556306a4088c238e2ea9311ea2cb3
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>
26 files changed:
arch/mn10300/kernel/setup.c
arch/powerpc/kernel/setup-common.c
arch/powerpc/platforms/pseries/hvCall_inst.c
drivers/block/cciss.c
drivers/char/misc.c
drivers/char/tpm/tpm_bios.c
drivers/isdn/capi/kcapi_proc.c
drivers/scsi/sg.c
fs/afs/proc.c
fs/dlm/debug_fs.c
fs/jbd2/journal.c
fs/nfs/client.c
fs/nfsd/export.c
fs/ocfs2/cluster/netdebug.c
fs/ocfs2/dlm/dlmdebug.c
fs/proc/nommu.c
include/linux/nfsd/nfsd.h
ipc/util.c
kernel/cgroup.c
kernel/kprobes.c
kernel/lockdep_proc.c
kernel/trace/ftrace.c
kernel/trace/trace.c
net/ipv6/ip6mr.c
security/integrity/ima/ima_fs.c
security/smack/smackfs.c