]> git.baikalelectronics.ru Git - kernel.git/commit
drm: remove master fd restriction on mode setting getters
authorMandeep Singh Baines <mandeep.baines@gmail.com>
Fri, 20 Jan 2012 20:11:16 +0000 (12:11 -0800)
committerDave Airlie <airlied@redhat.com>
Fri, 3 Feb 2012 09:29:35 +0000 (09:29 +0000)
commit7dba5e8f456449358765ecbea50323d2781c5e72
treec32b2aaa5900e9f98e514b81c1cdf6fdb0ab4e07
parent120890f5452ae9bfee5ddcf9f70820080e6aefa9
drm: remove master fd restriction on mode setting getters

Its useful to be able to call the mode setting getter ioctls.
Not requiring master fd, enables writing a simple program which
can query the state of the video system.

Since these ioctls are only "getters" there is no security or
synchronization issues which would require master fd. Opening
an new fd is already protected by the file permissions on the
device file.

Signed-off-by: Mandeep Singh Baines <msb@chromium.org>
Cc: Dave Airlie <airlied@redhat.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Ilija Hadzic <ihadzic@research.bell-labs.com>
Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
Cc: Stephane Marchesin <marcheu@chromium.org>
Cc: dri-devel@lists.freedesktop.org
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_drv.c