]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
sysctl: Allow creating permanently empty directories that serve as mountpoints.
authorEric W. Biederman <ebiederm@xmission.com>
Sun, 10 May 2015 03:09:14 +0000 (22:09 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 21 Jul 2015 17:10:10 +0000 (10:10 -0700)
commit4419466202070be255b8b0214f0f151c33c59ed6
tree2cd7dc6973071edc7a413bc9601a61cd9a7318bd
parentbb9fcac1598aeecc9079c467850b01e1c2515124
sysctl: Allow creating permanently empty directories that serve as mountpoints.

commit f9bd6733d3f11e24f3949becf277507d422ee1eb upstream.

Add a magic sysctl table sysctl_mount_point that when used to
create a directory forces that directory to be permanently empty.

Update the code to use make_empty_dir_inode when accessing permanently
empty directories.

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

Update /proc/sys/fs/binfmt_misc to be a permanently empty directory.

Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/proc/proc_sysctl.c
include/linux/sysctl.h
kernel/sysctl.c