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)
commita14b1b42477c5ef089fcda88cbaae50d979eb8f9
treec32b2aaa5900e9f98e514b81c1cdf6fdb0ab4e07
parent6c073a7ee250118b8be3a2379c96fd7f78382b06
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