diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2010-07-10 23:52:49 +0200 |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2012-11-19 12:09:34 +0100 |
commit | e656d8a6f7fdf7612d2f5771f0ddfca9487f59d9 (patch) | |
tree | 66479ae4b636517e0e54e78b4ec95acadd0aec7a /fs/proc/internal.h | |
parent | userns: On mips modify check_same_owner to use uid_eq (diff) | |
download | linux-e656d8a6f7fdf7612d2f5771f0ddfca9487f59d9.tar.xz linux-e656d8a6f7fdf7612d2f5771f0ddfca9487f59d9.zip |
procfs: Use the proc generic infrastructure for proc/self.
I had visions at one point of splitting proc into two filesystems. If
that had happened proc/self being the the part of proc that actually deals
with pids would have been a nice cleanup. As it is proc/self requires
a lot of unnecessary infrastructure for a single file.
The only user visible change is that a mounted /proc for a pid namespace
that is dead now shows a broken proc symlink, instead of being completely
invisible. I don't think anyone will notice or care.
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Diffstat (limited to 'fs/proc/internal.h')
-rw-r--r-- | fs/proc/internal.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/proc/internal.h b/fs/proc/internal.h index 43973b084abf..252544c05207 100644 --- a/fs/proc/internal.h +++ b/fs/proc/internal.h @@ -15,6 +15,7 @@ struct ctl_table_header; struct mempolicy; extern struct proc_dir_entry proc_root; +extern void proc_self_init(void); #ifdef CONFIG_PROC_SYSCTL extern int proc_sys_init(void); extern void sysctl_head_put(struct ctl_table_header *head); |