ACPI / EC: Deny write access unless requested by module param
authorOleg Drokin <green@linuxhacker.ru>
Sat, 6 Feb 2016 07:08:08 +0000 (02:08 -0500)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 9 Mar 2016 22:26:15 +0000 (23:26 +0100)
commit1b6e75ee295990d866ded77c29ffc6f88b831e26
treebe2d35660bdbc4088286561852bf059121569ad5
parentf6cede5b49e822ebc41a099fe41ab4989f64e2cb
ACPI / EC: Deny write access unless requested by module param

In debugfs it's not enough to just set file mode to read-only to
deny write access to a file, instead just don't provide
the write method unless write access is really requested.

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Acked-by: Thomas Renninger <trenn@suse.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/ec_sys.c