userns: Convert drm to use kuid and kgid and struct pid where appropriate
authorEric W. Biederman <ebiederm@xmission.com>
Wed, 8 Feb 2012 00:47:26 +0000 (16:47 -0800)
committerEric W. Biederman <ebiederm@xmission.com>
Thu, 13 Sep 2012 21:32:24 +0000 (14:32 -0700)
commit5fce5e0bbd44263c36f58ad1113b599d06ed1978
tree1864cb5740d44f1e16d373e69fca5eb54e449213
parent1efdb69b0bb41dec8ee3e2cac0a0f167837d0919
userns: Convert drm to use kuid and kgid and struct pid where appropriate

Blink Blink this had not been converted to use struct pid ages ago?

- On drm open capture the openers kuid and struct pid.
- On drm close release the kuid and struct pid
- When reporting the uid and pid convert the kuid and struct pid
  into values in the appropriate namespace.

Cc: dri-devel@lists.freedesktop.org
Acked-by: Dave Airlie <airlied@redhat.com>
Acked-by: Serge Hallyn <serge.hallyn@canonical.com>
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
drivers/gpu/drm/drm_fops.c
drivers/gpu/drm/drm_info.c
drivers/gpu/drm/drm_ioctl.c
include/drm/drmP.h
init/Kconfig