megaraid_sas: remove sysfs poll_mode_io world writeable permissions
authorBryn M. Reeves <bmr@redhat.com>
Thu, 12 Nov 2009 18:31:54 +0000 (18:31 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 22 Jan 2010 23:18:27 +0000 (15:18 -0800)
commit94249e60370f0094831ba673881222252d799257
treeca8f7e6f090c9035228a54a23c8580519b122cdd
parent2db740cb364a38b6bf50e1c61dc6d9615bfe390c
megaraid_sas: remove sysfs poll_mode_io world writeable permissions

commit bb7d3f24c71e528989501617651b669fbed798cb upstream.

/sys/bus/pci/drivers/megaraid_sas/poll_mode_io defaults to being
world-writable, which seems bad (letting any user affect kernel driver
behavior).

This turns off group and user write permissions, so that on typical
production systems only root can write to it.

Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/scsi/megaraid/megaraid_sas.c