Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

[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>

authored by

Bryn M. Reeves and committed by
Linus Torvalds
bb7d3f24 90aeb7c0

+1 -1
+1 -1
drivers/scsi/megaraid/megaraid_sas.c
··· 4046 4046 } 4047 4047 4048 4048 4049 - static DRIVER_ATTR(poll_mode_io, S_IRUGO|S_IWUGO, 4049 + static DRIVER_ATTR(poll_mode_io, S_IRUGO|S_IWUSR, 4050 4050 megasas_sysfs_show_poll_mode_io, 4051 4051 megasas_sysfs_set_poll_mode_io); 4052 4052