]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[SCSI] megaraid_sas: remove sysfs dbg_lvl world writeable permissions
authorJoe Malicki <jmalicki@metacarta.com>
Thu, 14 Aug 2008 21:14:48 +0000 (17:14 -0400)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Sat, 16 Aug 2008 15:32:24 +0000 (10:32 -0500)
commit66dca9b8c50b5e59d3bea8b21cee5c6dae6c9c46
tree1bc8984becac06db8167f136f4d5c8ca8e6abdb4
parentbcd2361d7eda10f85a103cbe70f7eebaeef03072
[SCSI] megaraid_sas: remove sysfs dbg_lvl world writeable permissions

/sys/bus/pci/drivers/megaraid_sas/dbg_lvl defaults to being
world-writable, which seems bad (letting any user affect kernel driver
behavior and logging level).

This turns off group and user write permissions, so that on typical
production systems only root can write to it.

[jejb: fix up rejections]
Signed-off-by: Joseph Malicki <jmalicki@metacarta.com>
Acked-by: "Yang, Bo" <Bo.Yang@lsi.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/megaraid/megaraid_sas.c