Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6656c21c authored by Rusty Russell's avatar Rusty Russell
Browse files

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: default avatarRusty Russell <rusty@rustcorp.com.au>
Acked-by: default avatarStewart Smith <stewart@linux.vnet.ibm.com>
parent 82867936
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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);