diff options
| author | Seth Forshee <seth.forshee@canonical.com> | 2016-11-14 06:12:56 -0500 |
|---|---|---|
| committer | Juergen Gross <jgross@suse.com> | 2016-11-17 07:52:18 -0500 |
| commit | f97df70b1c879f764f88b25b0e67b03a5213968a (patch) | |
| tree | 3358865fd56dcac3907492c156cb98cc79f788fc /fs/proc | |
| parent | 1ea55e8078a4fede5c21ea195d4e96091240a6ad (diff) | |
xenfs: Use proc_create_mount_point() to create /proc/xen
Mounting proc in user namespace containers fails if the xenbus
filesystem is mounted on /proc/xen because this directory fails
the "permanently empty" test. proc_create_mount_point() exists
specifically to create such mountpoints in proc but is currently
proc-internal. Export this interface to modules, then use it in
xenbus when creating /proc/xen.
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
Diffstat (limited to 'fs/proc')
| -rw-r--r-- | fs/proc/generic.c | 1 | ||||
| -rw-r--r-- | fs/proc/internal.h | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/fs/proc/generic.c b/fs/proc/generic.c index 5f2dc2032c79..7eb3cefcf2a3 100644 --- a/fs/proc/generic.c +++ b/fs/proc/generic.c | |||
| @@ -479,6 +479,7 @@ struct proc_dir_entry *proc_create_mount_point(const char *name) | |||
| 479 | } | 479 | } |
| 480 | return ent; | 480 | return ent; |
| 481 | } | 481 | } |
| 482 | EXPORT_SYMBOL(proc_create_mount_point); | ||
| 482 | 483 | ||
| 483 | struct proc_dir_entry *proc_create_data(const char *name, umode_t mode, | 484 | struct proc_dir_entry *proc_create_data(const char *name, umode_t mode, |
| 484 | struct proc_dir_entry *parent, | 485 | struct proc_dir_entry *parent, |
diff --git a/fs/proc/internal.h b/fs/proc/internal.h index 5378441ec1b7..7de679572111 100644 --- a/fs/proc/internal.h +++ b/fs/proc/internal.h | |||
| @@ -195,7 +195,6 @@ static inline bool is_empty_pde(const struct proc_dir_entry *pde) | |||
| 195 | { | 195 | { |
| 196 | return S_ISDIR(pde->mode) && !pde->proc_iops; | 196 | return S_ISDIR(pde->mode) && !pde->proc_iops; |
| 197 | } | 197 | } |
| 198 | struct proc_dir_entry *proc_create_mount_point(const char *name); | ||
| 199 | 198 | ||
| 200 | /* | 199 | /* |
| 201 | * inode.c | 200 | * inode.c |
