]> git.karo-electronics.de Git - mv-sheeva.git/commit
acpi ec_sys: Be more cautious about ec write access
authorThomas Renninger <trenn@suse.de>
Thu, 29 Jul 2010 20:30:24 +0000 (22:30 +0200)
committerMatthew Garrett <mjg@redhat.com>
Tue, 3 Aug 2010 13:49:13 +0000 (09:49 -0400)
commit500de3dd46ac9f9ae9d124634c68907b7d50d2cb
tree4ba63c739c3363950a57d459e1fa5c3dcff4a9ab
parentde4f10466e9347a2f1bfe39e501539557bed2c4b
acpi ec_sys: Be more cautious about ec write access

- Set Kconfig option default n
- Only allow root to read/write io file (sever bug!)
- Introduce write support module param -> default off
- Properly clean up if any debugfs files cannot be created

Signed-off-by: Thomas Renninger <trenn@suse.de>
CC: mjg59@srcf.ucam.org
CC: platform-driver-x86@vger.kernel.org
CC: linux-acpi@vger.kernel.org
CC: astarikovskiy@suse.de
Signed-off-by: Matthew Garrett <mjg@redhat.com>
drivers/acpi/Kconfig
drivers/acpi/ec_sys.c