Skip to content

Commit

Permalink
ACPI: video - fix permissions on some proc entries
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dmitry Torokhov authored and Len Brown committed Apr 29, 2008
1 parent 251cb0b commit c46e565
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/acpi/video.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit c46e565

Please sign in to comment.