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:
5c143c0
)
drivers/scsi/pm8001/pm8001_ctl.c: avoid world-writable sysfs files.
author
Rusty Russell
<
[email protected]
>
Wed, 14 May 2014 01:03:48 +0000
(10:33 +0930)
committer
Rusty Russell
<
[email protected]
>
Wed, 14 May 2014 01:23:55 +0000
(10:53 +0930)
In line with practice for module parameters, we're adding a build-time
check that sysfs files aren't world-writable.
Cc: Lindar Liu <
[email protected]
>
Cc: James Bottomley <
[email protected]
>
Signed-off-by: Rusty Russell <
[email protected]
>
drivers/scsi/pm8001/pm8001_ctl.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/pm8001/pm8001_ctl.c
b/drivers/scsi/pm8001/pm8001_ctl.c
index 28b4e813915352674a1a5aaf9e722fed2259f993..62c884e79409dcafab58ced771ad0da9cf25bdc2 100644
(file)
--- a/
drivers/scsi/pm8001/pm8001_ctl.c
+++ b/
drivers/scsi/pm8001/pm8001_ctl.c
@@
-729,7
+729,7
@@
static ssize_t pm8001_show_update_fw(struct device *cdev,
flash_error_table[i].reason);
}
-static DEVICE_ATTR(update_fw, S_IRUGO|S_IWU
GO
,
+static DEVICE_ATTR(update_fw, S_IRUGO|S_IWU
SR|S_IWGRP
,
pm8001_show_update_fw, pm8001_store_update_fw);
struct device_attribute *pm8001_host_attrs[] = {
&dev_attr_interface_rev,