diff options
author | Lee Jones <lee.jones@linaro.org> | 2013-01-17 14:21:53 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-03-04 06:03:38 +0800 |
commit | 71b9101a2b66f46703573c0a4aeca91b92038dbc (patch) | |
tree | 12b9f04992f258626d95ad564403caadec2b20c6 | |
parent | eddf61b2363eb515138aa7fd1627c1747f269131 (diff) |
ab8500-chargalg: Only root should have write permission on sysfs file
commit e3455002d04276c256a531f7175dce0f7d1cb78a upstream.
Only root should have write permission on sysfs file ab8500_chargalg/chargalg.
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/power/abx500_chargalg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/abx500_chargalg.c b/drivers/power/abx500_chargalg.c index 29708914606..eb7b4a64362 100644 --- a/drivers/power/abx500_chargalg.c +++ b/drivers/power/abx500_chargalg.c @@ -1698,7 +1698,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[] = { |