]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vmwgfx: Reinstate and tighten security around legacy master model
authorThomas Hellstrom <thellstrom@vmware.com>
Thu, 27 Feb 2014 11:56:08 +0000 (12:56 +0100)
committerThomas Hellstrom <thellstrom@vmware.com>
Fri, 28 Mar 2014 13:19:03 +0000 (14:19 +0100)
commit7ec1d6ee7e4970f6d1aa716a72fc06e53d5da99a
treef7e0d5b213e700ab0697e306a8e9bcb8ceb71406
parent255e46878beb57bffc80eb3afba7c44f113b1775
drm/vmwgfx: Reinstate and tighten security around legacy master model

The following restrictions affect clients connecting using legacy nodes:

*) Masters that have dropped master privilieges are not considered
   authenticated until they regain master privileges.
*) Clients whose master have dropped master privileges block interruptibly on
   ioctls  requiring authentication until their master regains master
   privileges. If their master exits, they are killed.

This is primarily designed to prevent clients authenticated with one master to
access data from clients authenticated with another master.
(Think fast user-switching or data sniffers enabled while X is vt-switched).

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c