Message ID | 1358769840-4763-11-git-send-email-lee.jones@linaro.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Mon, Jan 21, 2013 at 12:03:46PM +0000, Lee Jones wrote: > Only root should have write permission on sysfs file ab8500_chargalg/chargalg. > > Signed-off-by: Lee Jones <lee.jones@linaro.org> I guess it is a candidate for -stable? > --- > drivers/power/abx500_chargalg.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/power/abx500_chargalg.c b/drivers/power/abx500_chargalg.c > index 2463fa0..f59bc02 100644 > --- a/drivers/power/abx500_chargalg.c > +++ b/drivers/power/abx500_chargalg.c > @@ -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[] = { > -- > 1.7.9.5 >
diff --git a/drivers/power/abx500_chargalg.c b/drivers/power/abx500_chargalg.c index 2463fa0..f59bc02 100644 --- a/drivers/power/abx500_chargalg.c +++ b/drivers/power/abx500_chargalg.c @@ -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[] = {
Only root should have write permission on sysfs file ab8500_chargalg/chargalg. Signed-off-by: Lee Jones <lee.jones@linaro.org> --- drivers/power/abx500_chargalg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)