[PATCH 2/2] acpi ec_sys: Be more cautious about ec write access

2010-07-29 Thread Thomas Renninger
- 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 tr...@suse.de CC: mj...@srcf.ucam.org CC:

Re: [PATCH 2/2] acpi ec_sys: Be more cautious about ec write access

2010-07-29 Thread Thomas Renninger
On Thursday 29 July 2010 10:08:45 pm Thomas Renninger wrote: + + if (!write_support) + acpi_ec_io_ops.write = NULL; + if (!debugfs_create_file(io, 0600, dev_dir, ec, acpi_ec_io_ops)) Wait, this is wrong. I send an updated patch in a second... Thomas -- To