1
0
Fork 0

[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>
hifive-unleashed-5.1
Bryn M. Reeves 2009-11-12 18:31:54 +00:00 committed by Linus Torvalds
parent 90aeb7c01c
commit bb7d3f24c7
1 changed files with 1 additions and 1 deletions

View File

@ -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);