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>
Showing
- arch/x86/entry/syscalls/syscall_32.tbl 2 additions, 1 deletionarch/x86/entry/syscalls/syscall_32.tbl
- arch/x86/entry/syscalls/syscall_64.tbl 1 addition, 0 deletionsarch/x86/entry/syscalls/syscall_64.tbl
- fs/namespace.c 95 additions, 31 deletionsfs/namespace.c
- include/linux/lsm_hooks.h 6 additions, 0 deletionsinclude/linux/lsm_hooks.h
- include/linux/security.h 7 additions, 0 deletionsinclude/linux/security.h
- include/linux/syscalls.h 3 additions, 0 deletionsinclude/linux/syscalls.h
- include/uapi/linux/mount.h 11 additions, 0 deletionsinclude/uapi/linux/mount.h
- security/security.c 5 additions, 0 deletionssecurity/security.c
Loading
Please register or sign in to comment