drm/nouveau: drop DRM_AUTH from DRM_RENDER_ALLOW ioctls
authorEmil Velikov <emil.velikov@collabora.com>
Mon, 27 May 2019 08:17:36 +0000 (09:17 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 26 Jun 2019 14:00:40 +0000 (15:00 +0100)
commita305f6c5c8194fbe53e2f1c101476373d04538d0
treeca033a05a131f36e740a7ec0b0fdbcd6c248a4e2
parent88209d2c5035737f96bcfc2fd73c0fd8d80e9bf1
drm/nouveau: drop DRM_AUTH from DRM_RENDER_ALLOW ioctls

The authentication can be circumvented, by design, by using the render
node.

From the driver POV there is no distinction between primary and render
nodes, thus we can drop the token.

Note: the outstanding DRM_AUTH instance is:
 - legacy DRI1 ioctl, which is already neutered

Cc: Ben Skeggs <bskeggs@redhat.com>
Cc: nouveau@lists.freedesktop.org
Cc: David Airlie <airlied@linux.ie>
Cc: Daniel Vetter <daniel@ffwll.ch>
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Ben Skeggs <bskeggs@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190527081741.14235-8-emil.l.velikov@gmail.com
drivers/gpu/drm/nouveau/nouveau_drm.c