diff options
author | Seth Forshee <seth.forshee@canonical.com> | 2016-11-14 12:12:56 +0100 |
---|---|---|
committer | Juergen Gross <jgross@suse.com> | 2016-11-17 13:52:18 +0100 |
commit | f97df70b1c879f764f88b25b0e67b03a5213968a (patch) | |
tree | 3358865fd56dcac3907492c156cb98cc79f788fc /drivers/xen | |
parent | xen-platform: use builtin_pci_driver (diff) | |
download | linux-f97df70b1c879f764f88b25b0e67b03a5213968a.tar.xz linux-f97df70b1c879f764f88b25b0e67b03a5213968a.zip |
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 'drivers/xen')
-rw-r--r-- | drivers/xen/xenbus/xenbus_probe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/xen/xenbus/xenbus_probe.c b/drivers/xen/xenbus/xenbus_probe.c index 33a31cfef55d..b5c1dec4a7c2 100644 --- a/drivers/xen/xenbus/xenbus_probe.c +++ b/drivers/xen/xenbus/xenbus_probe.c @@ -826,7 +826,7 @@ static int __init xenbus_init(void) * Create xenfs mountpoint in /proc for compatibility with * utilities that expect to find "xenbus" under "/proc/xen". */ - proc_mkdir("xen", NULL); + proc_create_mount_point("xen"); #endif out_error: |