projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8286793
)
arch/powerpc/platforms/powernv/opal-elog.c: fix world-writable sysfs files
author
Rusty Russell
<rusty@rustcorp.com.au>
Wed, 6 Aug 2014 00:45:36 +0000
(10:15 +0930)
committer
Rusty Russell
<rusty@rustcorp.com.au>
Thu, 7 Aug 2014 11:34:52 +0000
(21:04 +0930)
If you don't have a store function, you're not writable anyway!
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Acked-by: Stewart Smith <stewart@linux.vnet.ibm.com>
arch/powerpc/platforms/powernv/opal-elog.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/platforms/powernv/opal-elog.c
b/arch/powerpc/platforms/powernv/opal-elog.c
index 10268c41d8302dd39ed73f4e0ad98dd6deb5e25f..925bad993e3010585a2454364b1cdbc303911596 100644
(file)
--- a/
arch/powerpc/platforms/powernv/opal-elog.c
+++ b/
arch/powerpc/platforms/powernv/opal-elog.c
@@
-82,9
+82,9
@@
static ssize_t elog_ack_store(struct elog_obj *elog_obj,
}
static struct elog_attribute id_attribute =
- __ATTR(id,
0666
, elog_id_show, NULL);
+ __ATTR(id,
S_IRUGO
, elog_id_show, NULL);
static struct elog_attribute type_attribute =
- __ATTR(type,
0666
, elog_type_show, NULL);
+ __ATTR(type,
S_IRUGO
, elog_type_show, NULL);
static struct elog_attribute ack_attribute =
__ATTR(acknowledge, 0660, elog_ack_show, elog_ack_store);