thinkpad-acpi: lock down video output control to root only
commit9c4fd4bea8bddbef6ceb120f13163b3b5fa8d9f5
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sun, 7 Feb 2010 23:56:50 +0000 (7 21:56 -0200)
committerHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sat, 20 Feb 2010 22:00:35 +0000 (20 20:00 -0200)
tree5b1df10571ef1fd3a451e6edf66ca05d11b11bd3
parent316621da231097600de11257865580c5a6573387
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