diff options
author | Vasiliy Kulikov <segoon@openwall.com> | 2011-02-04 15:23:59 +0300 |
---|---|---|
committer | Willy Tarreau <w@1wt.eu> | 2011-04-30 16:53:07 +0200 |
commit | ad2696852ffe240fbe4d88cbfd9e1ee890cff7aa (patch) | |
tree | 88de825b54f8fcf0e310ff63c4e36213a969f0d4 /drivers | |
parent | 6261151057a6704f08dbafdc3d3ca07e3cff569c (diff) |
platform: x86: asus_acpi: world-writable procfs files
commit 8040835760adf0ef66876c063d47f79f015fb55d upstream.
Don't allow everybody to change ACPI settings. The comment says that it
is done deliberatelly, however, the comment before disp_proc_write()
says that at least one of these setting is experimental.
Signed-off-by: Vasiliy Kulikov <segoon@openwall.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/acpi/asus_acpi.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/acpi/asus_acpi.c b/drivers/acpi/asus_acpi.c index e2ab023ef223..0037320f0f16 100644 --- a/drivers/acpi/asus_acpi.c +++ b/drivers/acpi/asus_acpi.c @@ -985,14 +985,8 @@ static int asus_hotk_add_fs(struct acpi_device *device) struct proc_dir_entry *proc; mode_t mode; - /* - * If parameter uid or gid is not changed, keep the default setting for - * our proc entries (-rw-rw-rw-) else, it means we care about security, - * and then set to -rw-rw---- - */ - if ((asus_uid == 0) && (asus_gid == 0)) { - mode = S_IFREG | S_IRUGO | S_IWUGO; + mode = S_IFREG | S_IRUGO | S_IWUSR | S_IWGRP; } else { mode = S_IFREG | S_IRUSR | S_IRGRP | S_IWUSR | S_IWGRP; printk(KERN_WARNING " asus_uid and asus_gid parameters are " |