diff options
Diffstat (limited to 'fs/proc/inode.c')
| -rw-r--r-- | fs/proc/inode.c | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/proc/inode.c b/fs/proc/inode.c index 205c9228083..554ecc54799 100644 --- a/fs/proc/inode.c +++ b/fs/proc/inode.c @@ -108,8 +108,8 @@ static int proc_show_options(struct seq_file *seq, struct dentry *root)  	struct super_block *sb = root->d_sb;  	struct pid_namespace *pid = sb->s_fs_info; -	if (pid->pid_gid) -		seq_printf(seq, ",gid=%lu", (unsigned long)pid->pid_gid); +	if (!gid_eq(pid->pid_gid, GLOBAL_ROOT_GID)) +		seq_printf(seq, ",gid=%u", from_kgid_munged(&init_user_ns, pid->pid_gid));  	if (pid->hide_pid != 0)  		seq_printf(seq, ",hidepid=%u", pid->hide_pid);  |