thinkpad-acpi: lock down video output control to root only
commit3fddaefd83486793b7a7d0c7b8c671adfc3b929e
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sun, 7 Feb 2010 23:43:10 +0000 (7 21:43 -0200)
committerHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sat, 20 Feb 2010 22:03:58 +0000 (20 20:03 -0200)
tree81d165f72f1eae3131240df53065126941cd92ed
parentabeff76ce6eadd45ff5981d4451c52d17a6361ab
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