]> asedeno.scripts.mit.edu Git - linux.git/commit
drm: drop DRM_AUTH requirement from AUTH_MAGIC ioctl
authorEmil Velikov <emil.velikov@collabora.com>
Mon, 14 Jan 2019 08:43:05 +0000 (08:43 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 13 Feb 2019 17:37:45 +0000 (17:37 +0000)
commit4933c9a494416a8edc3166ce3f3ce3836a6af01d
tree85a4c40e9f0e80529d6e6248ffdd69e138091753
parent7fd56e0260a22c0cfaf9adb94a2427b76e239dd0
drm: drop DRM_AUTH requirement from AUTH_MAGIC ioctl

Currently only an authenticated master can authenticate another client.

In practise the client can only be master if CAP_SYS_ADMIN is present,
although having the CAP also sets the client as authenticated.

Thus DRM_AUTH in AUTH_MAGIC's "DRM_AUTH | DRM_MASTER" is superfluous.

Notices while working on IGT tests.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20190114084305.15141-1-emil.l.velikov@gmail.com
drivers/gpu/drm/drm_ioctl.c