thinkpad-acpi: lock down video output control to root only
commit62ff92211d319820c88f3f49dcb93a7548a5f395
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sun, 7 Feb 2010 23:52:58 +0000 (7 21:52 -0200)
committerHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sat, 20 Feb 2010 22:01:44 +0000 (20 20:01 -0200)
tree9fae5ea4e80465fc2ca27f8d326e6603df51e8a1
parent15f0d3104d5768dcc1251734b24c0b968e6ebecb
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