thinkpad-acpi: lock down video output control to root only
commit95ce24c4dfa7c31473dbaaef3be3d3bd2907bd30
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Fri, 13 May 2011 12:22:32 +0000 (13 09:22 -0300)
committerHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Fri, 13 May 2011 12:22:32 +0000 (13 09:22 -0300)
tree1ce224f8199b9e40bdcfbb21cd746768cd07af25
parent9f2e44fb2376295bdfd929d5497da6bb74c2121e
thinkpad-acpi: lock down video output control to root only

Jidani reports that, given the right combination of ThinkPad and
X.org, just reading the video output control state can crash X.org.

Until the day I somehow find out a model or BIOS cut date to not
provide this feature to ThinkPads that can do video switching through
X RandR, change permissions so that only processes with CAP_SYS_ADMIN
can access any sort of video output control state.

Reported-by: Jidani
Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Documentation/laptops/thinkpad-acpi.txt
drivers/platform/x86/Kconfig
drivers/platform/x86/thinkpad_acpi.c