]> git.baikalelectronics.ru Git - kernel.git/commit
drm: Do not drop root privileges for a fancier younger process
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 29 Oct 2013 08:55:57 +0000 (08:55 +0000)
committerDave Airlie <airlied@redhat.com>
Wed, 6 Nov 2013 04:27:35 +0000 (14:27 +1000)
commit80d3000f1e8270168e4afb0389d6bb8d60419131
tree3ed2fdb330463f2d23d08e6e8b10f4e1ba04d4cf
parent304636184127698dbe5bb7fb6b30e3fc04da6be1
drm: Do not drop root privileges for a fancier younger process

When a second process opens the device and master transferrence is
complete, we walk the list of open devices and remove their
authentication. This also revokes our root privilege. Instead of simply
dropping the authentication, this patch reverts the authenticated state
back to its original value.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_fops.c
include/drm/drmP.h