Explorar o código

[SCSI] aic94xx: world-writable sysfs update_bios file

Don't allow everybody to load firmware.

Signed-off-by: Vasiliy Kulikov <segoon@openwall.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: James Bottomley <jbottomley@parallels.com>
Vasiliy Kulikov %!s(int64=14) %!d(string=hai) anos
pai
achega
8e91096597
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      drivers/scsi/aic94xx/aic94xx_init.c

+ 1 - 1
drivers/scsi/aic94xx/aic94xx_init.c

@@ -486,7 +486,7 @@ static ssize_t asd_show_update_bios(struct device *dev,
 			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)