[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>
This commit is contained in:
parent
90aeb7c01c
commit
bb7d3f24c7
1 changed files with 1 additions and 1 deletions
|
@ -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_set_poll_mode_io);
|
||||
|
||||
|
|
Loading…
Reference in a new issue