userns: Convert drm to use kuid and kgid and struct pid where appropriate
[deliverable/linux.git] / drivers / gpu / drm / drm_ioctl.c
index 64a62c6973138f71a0627ec6e9a87c129d6e963e..39a43834cef9e57659ac5a5f5d4b490804523eed 100644 (file)
@@ -215,8 +215,8 @@ int drm_getclient(struct drm_device *dev, void *data,
        list_for_each_entry(pt, &dev->filelist, lhead) {
                if (i++ >= idx) {
                        client->auth = pt->authenticated;
-                       client->pid = pt->pid;
-                       client->uid = pt->uid;
+                       client->pid = pid_vnr(pt->pid);
+                       client->uid = from_kuid_munged(current_user_ns(), pt->uid);
                        client->magic = pt->magic;
                        client->iocs = pt->ioctl_count;
                        mutex_unlock(&dev->struct_mutex);
This page took 0.024818 seconds and 5 git commands to generate.