drm/vmwgfx: Tighten security around surface sharing v2
authorThomas Hellstrom <thellstrom@vmware.com>
Wed, 19 Mar 2014 09:45:11 +0000 (10:45 +0100)
committerThomas Hellstrom <thellstrom@vmware.com>
Fri, 28 Mar 2014 13:19:03 +0000 (14:19 +0100)
commit6d10aab8f0658d624e5aafcd52b70afa23a75e5e
tree8ead3c5e0a3bacf4ff5eb3f876a9e880aa4f9d58
parentadebcb20e4ca9330a293c294e1f104edba21dbaf
drm/vmwgfx: Tighten security around surface sharing v2

If using legacy (non-prime) surface sharing, only allow surfaces
to be shared between clients with the same master. This will block
malicious clients from peeking at contents at surfaces from other
(possibly vt-switched) masters.

v2:
s/legacy_client/primary_client/

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