procfs: add hidepid= and gid= mount options
[deliverable/linux.git] / fs / proc / inode.c
index 27c762f34870a2923b49edecf78135b7dbf922b5..84fd3235a5902b73eb59dbc9d18d42be4969b3a3 100644 (file)
@@ -106,6 +106,14 @@ void __init proc_init_inodecache(void)
 
 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 (pid->hide_pid != 0)
+               seq_printf(seq, ",hidepid=%u", pid->hide_pid);
+
        return 0;
 }
 
This page took 0.124891 seconds and 5 git commands to generate.