提交 8e910965 编写于 作者: V Vasiliy Kulikov 提交者: James Bottomley

[SCSI] aic94xx: world-writable sysfs update_bios file

Don't allow everybody to load firmware.
Signed-off-by: NVasiliy Kulikov <segoon@openwall.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NJames Bottomley <jbottomley@parallels.com>
上级 86cfa7fc
...@@ -486,7 +486,7 @@ static ssize_t asd_show_update_bios(struct device *dev, ...@@ -486,7 +486,7 @@ static ssize_t asd_show_update_bios(struct device *dev,
flash_error_table[i].reason); 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); asd_show_update_bios, asd_store_update_bios);
static int asd_create_dev_attrs(struct asd_ha_struct *asd_ha) static int asd_create_dev_attrs(struct asd_ha_struct *asd_ha)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册