提交 e3455002 编写于 作者: L Lee Jones

ab8500-chargalg: Only root should have write permission on sysfs file

Only root should have write permission on sysfs file ab8500_chargalg/chargalg.

Cc: stable@vger.kernel.org
Signed-off-by: NLee Jones <lee.jones@linaro.org>
上级 8757a08e
......@@ -1711,7 +1711,7 @@ static ssize_t abx500_chargalg_sysfs_charger(struct kobject *kobj,
static struct attribute abx500_chargalg_en_charger = \
{
.name = "chargalg",
.mode = S_IWUGO,
.mode = S_IWUSR,
};
static struct attribute *abx500_chargalg_chg[] = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册