]> 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)
commit2ef6a364866b1d5dfcdc7b7062eac92ede198a96
treec32b2aaa5900e9f98e514b81c1cdf6fdb0ab4e07
parent2c6f9b98e663d723ab67e59f6270954be994d66f
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