Commit bb7d3f24 authored by Bryn M. Reeves's avatar Bryn M. Reeves Committed by Linus Torvalds

[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: default avatarBryn M. Reeves <bmr@redhat.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 90aeb7c0
...@@ -4046,7 +4046,7 @@ megasas_aen_polling(struct work_struct *work) ...@@ -4046,7 +4046,7 @@ megasas_aen_polling(struct work_struct *work)
} }
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_show_poll_mode_io,
megasas_sysfs_set_poll_mode_io); megasas_sysfs_set_poll_mode_io);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment