Skip to content

Commit

Permalink
Make /proc/acpi/call not world-writable
Browse files Browse the repository at this point in the history
Improper use of ACPI calls may crash or even damage the system, therefore its
access should be restricted to privileged users only.
  • Loading branch information
Lekensteyn committed Sep 17, 2011
1 parent 39b7a83 commit 3c842f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion acpi_call.c
Expand Up @@ -247,7 +247,7 @@ static int acpi_proc_read(char *page, char **start, off_t off,
/** module initialization function */ /** module initialization function */
static int __init init_acpi_call(void) static int __init init_acpi_call(void)
{ {
struct proc_dir_entry *acpi_entry = create_proc_entry("call", 0666, acpi_root_dir); struct proc_dir_entry *acpi_entry = create_proc_entry("call", 0660, acpi_root_dir);


strcpy(result_buffer, "not called"); strcpy(result_buffer, "not called");


Expand Down

0 comments on commit 3c842f4

Please sign in to comment.