Skip to contentSkip to conversation

aic94xx: world-writable sysfs update_bios file

PATCH In review [email protected] 1 participant 1 message May 23, 2011 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH 2/6 aic94xx: world-writable sysfs update_bios file

From: Vasiliy Kulikov <[email protected]>

Don't allow everybody to load firmware.

---

 drivers/scsi/aic94xx/aic94xx_init.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/scsi/aic94xx/aic94xx_init.c renamed from drivers/scsi/aic94xx/aic94xx_init.c~aic94xx-world-writable-sysfs-update_bios-file +1 -1
diff -puN drivers/scsi/aic94xx/aic94xx_init.c~aic94xx-world-writable-sysfs-update_bios-file drivers/scsi/aic94xx/aic94xx_init.c
@@ -486,7 +486,7 @@ static ssize_t asd_show_update_bios(stru
 			flash_error_table[i].reason);
 }
 
-static DEVICE_ATTR(update_bios, S_IRUGO|S_IWUGO,
+static DEVICE_ATTR(update_bios, S_IRUGO|S_IWUSR,
 	asd_show_update_bios, asd_store_update_bios);
 
 static int asd_create_dev_attrs(struct asd_ha_struct *asd_ha)

_