mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
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 <[email protected]> Signed-off-by: David Vrabel <[email protected]> Signed-off-by: Juergen Gross <[email protected]>
This commit is contained in:
parent
1ea55e8078
commit
f97df70b1c
4 changed files with 4 additions and 2 deletions
|
|
@ -479,6 +479,7 @@ struct proc_dir_entry *proc_create_mount_point(const char *name)
|
|||
}
|
||||
return ent;
|
||||
}
|
||||
EXPORT_SYMBOL(proc_create_mount_point);
|
||||
|
||||
struct proc_dir_entry *proc_create_data(const char *name, umode_t mode,
|
||||
struct proc_dir_entry *parent,
|
||||
|
|
|
|||
|
|
@ -195,7 +195,6 @@ static inline bool is_empty_pde(const struct proc_dir_entry *pde)
|
|||
{
|
||||
return S_ISDIR(pde->mode) && !pde->proc_iops;
|
||||
}
|
||||
struct proc_dir_entry *proc_create_mount_point(const char *name);
|
||||
|
||||
/*
|
||||
* inode.c
|
||||
|
|
|
|||
Loading…
Reference in a new issue