Whamcloud - gitweb
LU-2511 procfs: Disallow secretly (un)writable proc entries
authorJohn L. Hammond <jhammond@tacc.utexas.edu>
Wed, 19 Dec 2012 22:54:31 +0000 (16:54 -0600)
committerOleg Drokin <green@whamcloud.com>
Mon, 21 Jan 2013 18:58:12 +0000 (13:58 -0500)
commita5450f57fe530b706d7a1149a35906601f00cb44
treefbf63458d1d54216082a475090ddd7547a8ef6b6
parent6239198fcea84d76157fc50740088f58cc8a1df7
LU-2511 procfs: Disallow secretly (un)writable proc entries

Add an assert to lprocfs_seq_create() to ensure that proc entries
implementing write have user writable modes.  Fix a few callers to
pass this assertion.

Signed-off-by: John L. Hammond <jhammond@tacc.utexas.edu>
Change-Id: I95d08106f7d9be478c29d7331cdf5ab607435889
Reviewed-on: http://review.whamcloud.com/4871
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Keith Mannthey <keith.mannthey@intel.com>
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/mdt/mdt_lproc.c
lustre/mgs/lproc_mgs.c
lustre/obdclass/lprocfs_status.c
lustre/ofd/lproc_ofd.c
lustre/osc/lproc_osc.c
lustre/osd-ldiskfs/osd_lproc.c