[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <AANLkTinrXQsF_MfHZJbACGnw0=iWQ4otdMUL3GhMDNbf@mail.gmail.com>
Date: Fri, 18 Feb 2011 20:01:55 +0300
From: Vasiliy Kulikov <segooon@...il.com>
To: linux-kernel@...r.kernel.org
Subject: Re: [PATCH 08/20] mfd: ab3100: world-writable debugfs *_priv files
2011/2/4 Vasiliy Kulikov <segoon@...nwall.com>:
> Don't allow everybody to change device hardware registers.
Ping.
> Signed-off-by: Vasiliy Kulikov <segoon@...nwall.com>
> ---
> Compile tested only.
>
> drivers/mfd/ab3100-core.c | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/mfd/ab3100-core.c b/drivers/mfd/ab3100-core.c
> index 4193af5..1707d22 100644
> --- a/drivers/mfd/ab3100-core.c
> +++ b/drivers/mfd/ab3100-core.c
> @@ -613,7 +613,7 @@ static void ab3100_setup_debugfs(struct ab3100 *ab3100)
> ab3100_get_priv.ab3100 = ab3100;
> ab3100_get_priv.mode = false;
> ab3100_get_reg_file = debugfs_create_file("get_reg",
> - S_IWUGO, ab3100_dir, &ab3100_get_priv,
> + S_IWUSR, ab3100_dir, &ab3100_get_priv,
> &ab3100_get_set_reg_fops);
> if (!ab3100_get_reg_file) {
> err = -ENOMEM;
> @@ -623,7 +623,7 @@ static void ab3100_setup_debugfs(struct ab3100 *ab3100)
> ab3100_set_priv.ab3100 = ab3100;
> ab3100_set_priv.mode = true;
> ab3100_set_reg_file = debugfs_create_file("set_reg",
> - S_IWUGO, ab3100_dir, &ab3100_set_priv,
> + S_IWUSR, ab3100_dir, &ab3100_set_priv,
> &ab3100_get_set_reg_fops);
> if (!ab3100_set_reg_file) {
> err = -ENOMEM;
> --
> 1.7.0.4
>
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists