/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/ |
H A D | bpf_obj_pinning.c | 30 int to_dfd, const char *to_path, in sys_move_mount() 33 return syscall(__NR_move_mount, from_dfd, from_path, to_dfd, to_path, ms_flags); in sys_move_mount() 29 sys_move_mount(int from_dfd, const char *from_path, int to_dfd, const char *to_path, unsigned int ms_flags) sys_move_mount() argument
|
/kernel/linux/linux-6.6/security/apparmor/include/ |
H A D | mount.h | 46 const struct path *to_path);
|
/kernel/linux/linux-6.6/security/apparmor/ |
H A D | mount.c | 487 const struct path *to_path) in aa_move_mount() 495 AA_BUG(!to_path); in aa_move_mount() 507 match_mnt(subj_cred, profile, to_path, to_buffer, in aa_move_mount() 485 aa_move_mount(const struct cred *subj_cred, struct aa_label *label, const struct path *from_path, const struct path *to_path) aa_move_mount() argument
|
H A D | lsm.c | 622 const struct path *to_path) in apparmor_move_mount() 630 to_path); in apparmor_move_mount() 621 apparmor_move_mount(const struct path *from_path, const struct path *to_path) apparmor_move_mount() argument
|
/kernel/linux/linux-6.6/fs/ |
H A D | namespace.c | 2935 static int do_set_group(struct path *from_path, struct path *to_path) in do_set_group() argument 2941 to = real_mount(to_path->mnt); in do_set_group() 2963 if (!path_mounted(to_path)) in do_set_group() 4074 struct path from_path, to_path; in SYSCALL_DEFINE5() local 4106 ret = user_path_at(to_dfd, to_pathname, lflags, &to_path); in SYSCALL_DEFINE5() 4110 ret = security_move_mount(&from_path, &to_path); in SYSCALL_DEFINE5() 4115 ret = do_set_group(&from_path, &to_path); in SYSCALL_DEFINE5() 4117 ret = do_move_mount(&from_path, &to_path, in SYSCALL_DEFINE5() 4121 path_put(&to_path); in SYSCALL_DEFINE5()
|
/kernel/linux/linux-5.10/fs/ |
H A D | namespace.c | 3626 struct path from_path, to_path; in SYSCALL_DEFINE5() local 3654 ret = user_path_at(to_dfd, to_pathname, lflags, &to_path); in SYSCALL_DEFINE5() 3658 ret = security_move_mount(&from_path, &to_path); in SYSCALL_DEFINE5() 3662 ret = do_move_mount(&from_path, &to_path); in SYSCALL_DEFINE5() 3665 path_put(&to_path); in SYSCALL_DEFINE5()
|
/kernel/linux/linux-6.6/security/landlock/ |
H A D | fs.c | 1059 const struct path *const to_path) in hook_move_mount() 1058 hook_move_mount(const struct path *const from_path, const struct path *const to_path) hook_move_mount() argument
|
/kernel/linux/linux-5.10/include/linux/ |
H A D | security.h | 314 int security_move_mount(const struct path *from_path, const struct path *to_path); 699 const struct path *to_path) in security_move_mount() 698 security_move_mount(const struct path *from_path, const struct path *to_path) security_move_mount() argument
|
H A D | syscalls.h | 1025 int to_dfd, const char __user *to_path,
|
/kernel/linux/linux-5.10/security/ |
H A D | security.c | 975 int security_move_mount(const struct path *from_path, const struct path *to_path) in security_move_mount() argument 977 return call_int_hook(move_mount, 0, from_path, to_path); in security_move_mount()
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | security.h | 322 int security_move_mount(const struct path *from_path, const struct path *to_path); 733 const struct path *to_path) in security_move_mount() 732 security_move_mount(const struct path *from_path, const struct path *to_path) security_move_mount() argument
|
H A D | syscalls.h | 917 int to_dfd, const char __user *to_path,
|
/kernel/linux/linux-5.10/fs/cifs/ |
H A D | inode.c | 2000 const char *to_path) 2020 rc = server->ops->rename(xid, tcon, from_path, to_path, cifs_sb); 1998 cifs_do_rename(const unsigned int xid, struct dentry *from_dentry, const char *from_path, struct dentry *to_dentry, const char *to_path) global() argument
|
/kernel/linux/linux-6.6/security/ |
H A D | security.c | 1453 * @to_path: destination mount point 1460 const struct path *to_path) in security_move_mount() 1462 return call_int_hook(move_mount, 0, from_path, to_path); in security_move_mount() 1459 security_move_mount(const struct path *from_path, const struct path *to_path) security_move_mount() argument
|
/kernel/linux/linux-5.10/fs/btrfs/ |
H A D | send.c | 3229 struct fs_path *to_path = NULL; in apply_dir_move() local 3293 to_path = name; in apply_dir_move() 3295 ret = get_cur_path(sctx, pm->ino, pm->gen, to_path); in apply_dir_move() 3299 ret = send_rename(sctx, from_path, to_path); in apply_dir_move() 3363 fs_path_free(to_path); in apply_dir_move()
|
/kernel/linux/linux-6.6/fs/btrfs/ |
H A D | send.c | 3518 struct fs_path *to_path = NULL; in apply_dir_move() local 3582 to_path = name; in apply_dir_move() 3584 ret = get_cur_path(sctx, pm->ino, pm->gen, to_path); in apply_dir_move() 3588 ret = send_rename(sctx, from_path, to_path); in apply_dir_move() 3651 fs_path_free(to_path); in apply_dir_move()
|
/kernel/linux/linux-6.6/fs/smb/client/ |
H A D | inode.c | 2202 const char *to_path) 2226 from_path, to_path, cifs_sb); 2200 cifs_do_rename(const unsigned int xid, struct dentry *from_dentry, const char *from_path, struct dentry *to_dentry, const char *to_path) global() argument
|
/kernel/linux/linux-5.10/security/selinux/ |
H A D | hooks.c | 2752 const struct path *to_path) in selinux_move_mount() 2756 return path_has_perm(cred, to_path, FILE__MOUNTON); in selinux_move_mount() 2751 selinux_move_mount(const struct path *from_path, const struct path *to_path) selinux_move_mount() argument
|
/kernel/linux/linux-6.6/security/selinux/ |
H A D | hooks.c | 2759 const struct path *to_path) in selinux_move_mount() 2763 return path_has_perm(cred, to_path, FILE__MOUNTON); in selinux_move_mount() 2758 selinux_move_mount(const struct path *from_path, const struct path *to_path) selinux_move_mount() argument
|