projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86cfa7f
)
[SCSI] aic94xx: world-writable sysfs update_bios file
author
Vasiliy Kulikov
<segoon@openwall.com>
Mon, 23 May 2011 22:29:12 +0000
(15:29 -0700)
committer
James Bottomley
<jbottomley@parallels.com>
Tue, 24 May 2011 17:08:39 +0000
(13:08 -0400)
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>
drivers/scsi/aic94xx/aic94xx_init.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/aic94xx/aic94xx_init.c
b/drivers/scsi/aic94xx/aic94xx_init.c
index 3b7e83d2dab4f1b491cc35523628e6532ce27fdb..d5ff142c93a2c9a0bdac1e768fb9748be657ca09 100644
(file)
--- a/
drivers/scsi/aic94xx/aic94xx_init.c
+++ b/
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_IWU
GO
,
+static DEVICE_ATTR(update_bios, S_IRUGO|S_IWU
SR
,
asd_show_update_bios, asd_store_update_bios);
static int asd_create_dev_attrs(struct asd_ha_struct *asd_ha)