Re: [patch 8/8] ACPI: video - fix permissions on some proc entries

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2007-11-06 at 00:43 +0800, Dmitry Torokhov wrote:
> ACPI: video - fix permissions on some proc entries
> 
> POST and DOS are supposed to be writable but permissions
> did not allow it.
The same reason as patch 6. :)
> Signed-off-by: Dmitry Torokhov <dtor@xxxxxxx>
> ---
>  drivers/acpi/video.c |    4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> Index: work/drivers/acpi/video.c
> ===================================================================
> --- work.orig/drivers/acpi/video.c
> +++ work/drivers/acpi/video.c
> @@ -1276,7 +1276,7 @@ static int acpi_video_bus_add_fs(struct
>         entry->owner = THIS_MODULE;
> 
>         /* 'POST' [R/W] */
> -       entry = create_proc_entry("POST", S_IFREG | S_IRUGO | S_IRUSR,
> +       entry = create_proc_entry("POST", S_IFREG | S_IRUGO | S_IWUSR,
>                                   device_dir);
>         if (!entry)
>                 goto err_remove_post_info;
> @@ -1287,7 +1287,7 @@ static int acpi_video_bus_add_fs(struct
>         entry->owner = THIS_MODULE;
> 
>         /* 'DOS' [R/W] */
> -       entry = create_proc_entry("DOS", S_IFREG | S_IRUGO | S_IRUSR,
> +       entry = create_proc_entry("DOS", S_IFREG | S_IRUGO | S_IWUSR,
>                               device_dir);
>         if (!entry)
>                 goto err_remove_post;
> 
> --
> Dmitry
> 
> 
-
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux