[SCSI] 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)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 13 Jan 2010 05:12:36 +0000 (21:12 -0800)
commitbb7d3f24c71e528989501617651b669fbed798cb
treeb94c2c2fcaaaf005cc7d9e78583df3131c437280
parent90aeb7c01c2da631cb611871a50980cbb6ca7149
[SCSI] megaraid_sas: remove sysfs poll_mode_io world writeable permissions

/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>
drivers/scsi/megaraid/megaraid_sas.c