]> www.infradead.org Git - users/jedix/linux-maple.git/commit
proc: Allow creating permanently empty directories that serve as mount points
authorEric W. Biederman <ebiederm@xmission.com>
Mon, 11 May 2015 21:44:25 +0000 (16:44 -0500)
committerBoris Ostrovsky <boris.ostrovsky@oracle.com>
Fri, 3 Feb 2017 20:55:23 +0000 (15:55 -0500)
commit7b303b86a3243ba60a0264b8c671953f9e15e9d9
treebcc9e361852ae87f95de162b02e94a9f3d4074af
parent7536846ec65e8355484cd945df7f25959bece7a0
proc: Allow creating permanently empty directories that serve as mount points

Add a new function proc_create_mount_point that when used to creates a
directory that can not be added to.

Add a new function is_empty_pde to test if a function is a mount
point.

Update the code to use make_empty_dir_inode when reporting
a permanently empty directory to the vfs.

Update the code to not allow adding to permanently empty directories.

Update /proc/openprom and /proc/fs/nfsd to be permanently empty directories.

Cc: stable@vger.kernel.org
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
OraBug: 25497392

(cherry picked from commit eb6d38d5427b3ad42f5268da0f1dd31bb0af1264)
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
fs/proc/generic.c
fs/proc/inode.c
fs/proc/internal.h
fs/proc/root.c