vfs: syscall: Add move_mount(2) to move mounts around
authorDavid Howells <dhowells@redhat.com>
Mon, 5 Nov 2018 17:40:30 +0000 (17:40 +0000)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 20 Mar 2019 22:49:06 +0000 (18:49 -0400)
commit2db154b3ea8e14b04fee23e3fdfd5e9d17fbc6ae
treeb7c4c1f2497b6c04b3481fdfd461c652befbca6d
parenta07b20004793d8926f78d63eb5980559f7813404
vfs: syscall: Add move_mount(2) to move mounts around

Add a move_mount() system call that will move a mount from one place to
another and, in the next commit, allow to attach an unattached mount tree.

The new system call looks like the following:

int move_mount(int from_dfd, const char *from_path,
       int to_dfd, const char *to_path,
       unsigned int flags);

Signed-off-by: David Howells <dhowells@redhat.com>
cc: linux-api@vger.kernel.org
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/x86/entry/syscalls/syscall_32.tbl
arch/x86/entry/syscalls/syscall_64.tbl
fs/namespace.c
include/linux/lsm_hooks.h
include/linux/security.h
include/linux/syscalls.h
include/uapi/linux/mount.h
security/security.c