aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2007-11-05 11:43:36 -0500
committerLen Brown <len.brown@intel.com>2008-04-29 10:50:55 -0400
commitc46e5658a0b81891532705bd65592afe091a5967 (patch)
treecec8d88b60a37c942eafedcf64556749d8caa835 /drivers/acpi
parent251cb0bc795f5c0d8ca27df093319e5b39966174 (diff)
ACPI: video - fix permissions on some proc entries
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>
Diffstat (limited to 'drivers/acpi')
-rw-r--r--drivers/acpi/video.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/acpi/video.c b/drivers/acpi/video.c
index 87ae791781ab..c24a1d743257 100644
--- a/drivers/acpi/video.c
+++ b/drivers/acpi/video.c
@@ -1376,7 +1376,7 @@ static int acpi_video_bus_add_fs(struct acpi_device *device)
1376 entry->owner = THIS_MODULE; 1376 entry->owner = THIS_MODULE;
1377 1377
1378 /* 'POST' [R/W] */ 1378 /* 'POST' [R/W] */
1379 entry = create_proc_entry("POST", S_IFREG | S_IRUGO | S_IRUSR, 1379 entry = create_proc_entry("POST", S_IFREG | S_IRUGO | S_IWUSR,
1380 device_dir); 1380 device_dir);
1381 if (!entry) 1381 if (!entry)
1382 goto err_remove_post_info; 1382 goto err_remove_post_info;
@@ -1387,7 +1387,7 @@ static int acpi_video_bus_add_fs(struct acpi_device *device)
1387 entry->owner = THIS_MODULE; 1387 entry->owner = THIS_MODULE;
1388 1388
1389 /* 'DOS' [R/W] */ 1389 /* 'DOS' [R/W] */
1390 entry = create_proc_entry("DOS", S_IFREG | S_IRUGO | S_IRUSR, 1390 entry = create_proc_entry("DOS", S_IFREG | S_IRUGO | S_IWUSR,
1391 device_dir); 1391 device_dir);
1392 if (!entry) 1392 if (!entry)
1393 goto err_remove_post; 1393 goto err_remove_post;