aboutsummaryrefslogtreecommitdiffstats
path: root/include/drm
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2012-02-07 19:47:26 -0500
committerEric W. Biederman <ebiederm@xmission.com>2012-09-13 17:32:24 -0400
commit5fce5e0bbd44263c36f58ad1113b599d06ed1978 (patch)
tree1864cb5740d44f1e16d373e69fca5eb54e449213 /include/drm
parent1efdb69b0bb41dec8ee3e2cac0a0f167837d0919 (diff)
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>
Diffstat (limited to 'include/drm')
-rw-r--r--include/drm/drmP.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/drm/drmP.h b/include/drm/drmP.h
index d6b67bb9075f..9bc5c6a1d52c 100644
--- a/include/drm/drmP.h
+++ b/include/drm/drmP.h
@@ -426,8 +426,8 @@ struct drm_prime_file_private {
426/** File private data */ 426/** File private data */
427struct drm_file { 427struct drm_file {
428 int authenticated; 428 int authenticated;
429 pid_t pid; 429 struct pid *pid;
430 uid_t uid; 430 kuid_t uid;
431 drm_magic_t magic; 431 drm_magic_t magic;
432 unsigned long ioctl_count; 432 unsigned long ioctl_count;
433 struct list_head lhead; 433 struct list_head lhead;