提交 c46e5658 编写于 作者: D Dmitry Torokhov 提交者: Len Brown

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: NDmitry Torokhov <dtor@mail.ru>
Acked-by: NZhang Rui <rui.zhang@intel.com>
Signed-off-by: NLen Brown <len.brown@intel.com>
上级 251cb0bc
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册