procfs: Print task uids and gids in the userns that opened the proc file
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / fs / proc / array.c
index c1c207c36caefeb1fcbc8d782504cfcbf1b616d8..554434265613331c22c87e860c219b83652f3e93 100644 (file)
@@ -162,7 +162,7 @@ static inline const char *get_task_state(struct task_struct *tsk)
 static inline void task_state(struct seq_file *m, struct pid_namespace *ns,
                                struct pid *pid, struct task_struct *p)
 {
-       struct user_namespace *user_ns = current_user_ns();
+       struct user_namespace *user_ns = seq_user_ns(m);
        struct group_info *group_info;
        int g;
        struct fdtable *fdt = NULL;