From e6ebf9520c6262ad76254a98f852ac613be9c419 Mon Sep 17 00:00:00 2001 From: "Sean V. Kelley" Date: Wed, 11 Jan 2012 11:53:49 -0800 Subject: [PATCH] MUST_REVERT: gfx: drm: explicitly authenticate for Android Added as an interim measure to proper client authentication using DRM_AUTH IOCTLs in user space. Applied to drm_fops.c:drm_open_helper where there is already a similar hack. Shall be removed upon userspace implementaiton. Signed-off-by: Sean V Kelley --- drivers/gpu/drm/drm_fops.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm/drm_fops.c b/drivers/gpu/drm/drm_fops.c index 2ec7d48..9d80128 100644 --- a/drivers/gpu/drm/drm_fops.c +++ b/drivers/gpu/drm/drm_fops.c @@ -255,6 +255,11 @@ static int drm_open_helper(struct inode *inode, struct file *filp, priv->authenticated = capable(CAP_SYS_ADMIN); priv->lock_count = 0; + /* Authenticating Android userspace with DRM */ +#ifdef CONFIG_ANDROID + DRM_DEBUG("setting as authenticated\n"); + priv->authenticated = 1; +#endif INIT_LIST_HEAD(&priv->lhead); INIT_LIST_HEAD(&priv->fbs); INIT_LIST_HEAD(&priv->event_list); -- 2.7.4