diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-10-29 09:55:57 +0100 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2013-11-06 05:27:35 +0100 |
commit | 1020dc6990168a5081ffad620c440e220f05b460 (patch) | |
tree | 3ed2fdb330463f2d23d08e6e8b10f4e1ba04d4cf /include/drm | |
parent | nouveau: drop interrupt busy setting. (diff) | |
download | linux-1020dc6990168a5081ffad620c440e220f05b460.tar.xz linux-1020dc6990168a5081ffad620c440e220f05b460.zip |
drm: Do not drop root privileges for a fancier younger process
When a second process opens the device and master transferrence is
complete, we walk the list of open devices and remove their
authentication. This also revokes our root privilege. Instead of simply
dropping the authentication, this patch reverts the authenticated state
back to its original value.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include/drm')
-rw-r--r-- | include/drm/drmP.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/drm/drmP.h b/include/drm/drmP.h index 444751b9aa89..ea8bff3c8468 100644 --- a/include/drm/drmP.h +++ b/include/drm/drmP.h @@ -413,6 +413,7 @@ struct drm_prime_file_private { /** File private data */ struct drm_file { + int always_authenticated; int authenticated; struct pid *pid; kuid_t uid; |