ACPI: video - fix permissions on some proc entries
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 5 Nov 2007 16:43:36 +0000 (11:43 -0500)
committerLen Brown <len.brown@intel.com>
Tue, 29 Apr 2008 14:50:55 +0000 (10:50 -0400)
POST and DOS are supposed to be writable but permissions
did not allow it.

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Acked-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/video.c

index 87ae791781ab4e24fd8c4214a159006a0a8af9c1..c24a1d743257e835523d2ac25e9e2474ee421df1 100644 (file)
@@ -1376,7 +1376,7 @@ static int acpi_video_bus_add_fs(struct acpi_device *device)
        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;
@@ -1387,7 +1387,7 @@ static int acpi_video_bus_add_fs(struct acpi_device *device)
        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;