summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2009-11-12 18:31:54 +0000
committerGreg Kroah-Hartman <gregkh@suse.de>2010-04-01 15:55:33 -0700
commit48dd705726e90a55b544ee1666e94501058e47df (patch)
tree4a2e7580546ff2554ddf0a703fdfe2274fc598a8 /drivers
parente4dc0141438ad95e3fbd8389168c83013f7fa767 (diff)
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/scsi/megaraid/megaraid_sas.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/megaraid/megaraid_sas.c b/drivers/scsi/megaraid/megaraid_sas.c
index 7a838c8462de..4352e30cd1f6 100644
--- a/drivers/scsi/megaraid/megaraid_sas.c
+++ b/drivers/scsi/megaraid/megaraid_sas.c
@@ -3451,7 +3451,7 @@ out:
return retval;
}
-static DRIVER_ATTR(poll_mode_io, S_IRUGO|S_IWUGO,
+static DRIVER_ATTR(poll_mode_io, S_IRUGO|S_IWUSR,
megasas_sysfs_show_poll_mode_io,
megasas_sysfs_set_poll_mode_io);