Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

[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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);