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: Lee Jones <lee.jones@linaro.org>
This commit is contained in:
parent
8757a08ea2
commit
e3455002d0
1 changed files with 1 additions and 1 deletions
|
@ -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[] = {
|
||||
|
|
Loading…
Reference in a new issue