]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xenfs: Use proc_create_mount_point() to create /proc/xen
authorSeth Forshee <seth.forshee@canonical.com>
Mon, 14 Nov 2016 11:12:56 +0000 (11:12 +0000)
committerBoris Ostrovsky <boris.ostrovsky@oracle.com>
Fri, 3 Feb 2017 20:55:29 +0000 (15:55 -0500)
commitac7bd1728ac4c74d4437797800b438fd4b8fafa8
treefb5919e5eafd79b99468b17b127beac067a806fd
parentcc01f8ce34de1932f76e57f45cfe791ac731b8ac
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>
OraBug: 25497392

(cherry picked from commit f97df70b1c879f764f88b25b0e67b03a5213968a)
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
drivers/xen/xenbus/xenbus_probe.c
fs/proc/generic.c
fs/proc/internal.h
include/linux/proc_fs.h