diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2014-08-06 10:15:36 +0930 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2014-08-07 21:04:52 +0930 |
commit | 6656c21ca10e54a84673d0ec2f0cf5f676e66a40 (patch) | |
tree | 343fbe80374164bcf8caaa2e045792ce8d73fc2f /arch/powerpc | |
parent | 82867936b00a8b73d38796577a66357024cd22fc (diff) | |
download | linux-6656c21ca10e54a84673d0ec2f0cf5f676e66a40.tar.gz linux-6656c21ca10e54a84673d0ec2f0cf5f676e66a40.tar.bz2 linux-6656c21ca10e54a84673d0ec2f0cf5f676e66a40.zip |
arch/powerpc/platforms/powernv/opal-elog.c: fix world-writable sysfs files
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>
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/platforms/powernv/opal-elog.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/platforms/powernv/opal-elog.c b/arch/powerpc/platforms/powernv/opal-elog.c index 10268c41d830..925bad993e30 100644 --- 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); |