Commit 8e910965975a125fff806acae80ab2b640a8dac7
Committed by
James Bottomley
1 parent
86cfa7fcb7
Exists in
master
and in
7 other branches
[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>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
drivers/scsi/aic94xx/aic94xx_init.c
... | ... | @@ -486,7 +486,7 @@ |
486 | 486 | flash_error_table[i].reason); |
487 | 487 | } |
488 | 488 | |
489 | -static DEVICE_ATTR(update_bios, S_IRUGO|S_IWUGO, | |
489 | +static DEVICE_ATTR(update_bios, S_IRUGO|S_IWUSR, | |
490 | 490 | asd_show_update_bios, asd_store_update_bios); |
491 | 491 | |
492 | 492 | static int asd_create_dev_attrs(struct asd_ha_struct *asd_ha) |