Skip to content

Commit

Permalink
ab8500-chargalg: Only root should have write permission on sysfs file
Browse files Browse the repository at this point in the history
Only root should have write permission on sysfs file ab8500_chargalg/chargalg.

Cc: [email protected]
Signed-off-by: Lee Jones <[email protected]>
  • Loading branch information
Lee Jones committed Jan 23, 2013
1 parent 8757a08 commit e345500
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/power/abx500_chargalg.c
Original file line number Diff line number Diff line change
Expand Up @@ -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[] = {
Expand Down

0 comments on commit e345500

Please sign in to comment.