]> git.baikalelectronics.ru Git - kernel.git/commit
drm: change ioctl permissions
authorRob Clark <rob@ti.com>
Thu, 13 Sep 2012 03:34:08 +0000 (03:34 +0000)
committerDave Airlie <airlied@redhat.com>
Tue, 2 Oct 2012 12:16:08 +0000 (22:16 +1000)
commit260c0b5f16741df4c3807d239542e4506101105e
tree6dadfa27aecbd6d54815a4b5dc99ca8a5e556e5a
parentae0ba08bee618ca15591daeb0f1287248e12865c
drm: change ioctl permissions

Previously read-only KMS ioctls had some somewhat inconsistent settings
regarding whether mastership was required.  For example, GETRESOURCES
did not require master, but GETPLANERESOURCES, GETPROPERTY, etc. did.

At least for debugging, it is nice to be able to use modetest to dump
property values while another process is master, and there seems to
be no harm in allowing read-only access to the KMS state to other
processes.

Signed-off-by: Rob Clark <rob@ti.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_drv.c