summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorDmitry Torokhov2007-11-05 17:43:36 +0100
committerLen Brown2008-04-29 16:50:55 +0200
commitc46e5658a0b81891532705bd65592afe091a5967 (patch)
treecec8d88b60a37c942eafedcf64556749d8caa835 /drivers
parentACPI: video - properly handle errors when registering proc elements (diff)
downloadkernel-qcow2-linux-c46e5658a0b81891532705bd65592afe091a5967.tar.gz
kernel-qcow2-linux-c46e5658a0b81891532705bd65592afe091a5967.tar.xz
kernel-qcow2-linux-c46e5658a0b81891532705bd65592afe091a5967.zip
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')
-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)
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;