megaraid_sas dbg_lvl permissions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



/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.

Signed-off-by: Joseph Malicki <jmalicki@xxxxxxxxxxxxx>
--
--- drivers/scsi/megaraid/megaraid_sas.c.orig	2008-01-31 10:49:57.000000000 -0500
+++ drivers/scsi/megaraid/megaraid_sas.c	2008-01-31 10:52:10.000000000 -0500
@@ -3044,7 +3044,7 @@
 	return retval;
 }
 
-static DRIVER_ATTR(dbg_lvl, S_IRUGO|S_IWUGO, megasas_sysfs_show_dbg_lvl,
+static DRIVER_ATTR(dbg_lvl, S_IRUGO|S_IWUSR, megasas_sysfs_show_dbg_lvl,
 		   megasas_sysfs_set_dbg_lvl);
 
 /**
--
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux