/kernel/linux/linux-6.6/security/apparmor/ |
H A D | mount.c | 486 struct aa_label *label, const struct path *from_path, in aa_move_mount() 494 AA_BUG(!from_path); in aa_move_mount() 503 if (!our_mnt(from_path->mnt)) in aa_move_mount() 505 from_path = NULL; in aa_move_mount() 508 from_path, from_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 | 621 static int apparmor_move_mount(const struct path *from_path, in apparmor_move_mount() argument 629 error = aa_move_mount(current_cred(), label, from_path, in apparmor_move_mount()
|
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/ |
H A D | bpf_obj_pinning.c | 29 static inline int sys_move_mount(int from_dfd, const char *from_path, in sys_move_mount() argument 33 return syscall(__NR_move_mount, from_dfd, from_path, to_dfd, to_path, ms_flags); in sys_move_mount()
|
/kernel/linux/linux-6.6/security/apparmor/include/ |
H A D | mount.h | 45 struct aa_label *label, const struct path *from_path,
|
/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 2940 from = real_mount(from_path->mnt); in do_set_group() 2961 if (!path_mounted(from_path)) in do_set_group() 4074 struct path from_path, to_path; in SYSCALL_DEFINE5() local 4097 ret = user_path_at(from_dfd, from_pathname, lflags, &from_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() 4123 path_put(&from_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 3645 ret = user_path_at(from_dfd, from_pathname, lflags, &from_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() 3667 path_put(&from_path); in SYSCALL_DEFINE5()
|
/kernel/linux/linux-6.6/security/landlock/ |
H A D | fs.c | 1058 static int hook_move_mount(const struct path *const from_path, in hook_move_mount() argument
|
/kernel/linux/linux-5.10/fs/cifs/ |
H A D | inode.c | 1999 const char *from_path, struct dentry *to_dentry, 2020 rc = server->ops->rename(xid, tcon, from_path, to_path, cifs_sb); 2044 oparms.path = from_path; 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-5.10/fs/btrfs/ |
H A D | send.c | 3228 struct fs_path *from_path = NULL; in apply_dir_move() local 3242 from_path = fs_path_alloc(); in apply_dir_move() 3243 if (!name || !from_path) { in apply_dir_move() 3257 pm->gen, from_path); in apply_dir_move() 3264 from_path); in apply_dir_move() 3267 ret = fs_path_add_path(from_path, name); in apply_dir_move() 3299 ret = send_rename(sctx, from_path, to_path); in apply_dir_move() 3362 fs_path_free(from_path); in apply_dir_move()
|
/kernel/linux/linux-6.6/fs/btrfs/ |
H A D | send.c | 3517 struct fs_path *from_path = NULL; in apply_dir_move() local 3531 from_path = fs_path_alloc(); in apply_dir_move() 3532 if (!name || !from_path) { in apply_dir_move() 3546 pm->gen, from_path); in apply_dir_move() 3553 from_path); in apply_dir_move() 3556 ret = fs_path_add_path(from_path, name); in apply_dir_move() 3588 ret = send_rename(sctx, from_path, to_path); in apply_dir_move() 3650 fs_path_free(from_path); in apply_dir_move()
|
/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); 698 static inline int security_move_mount(const struct path *from_path, in security_move_mount() argument
|
H A D | syscalls.h | 1024 asmlinkage long sys_move_mount(int from_dfd, const char __user *from_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); 732 static inline int security_move_mount(const struct path *from_path, in security_move_mount() argument
|
H A D | syscalls.h | 916 asmlinkage long sys_move_mount(int from_dfd, const char __user *from_path,
|
/kernel/linux/linux-6.6/fs/smb/client/ |
H A D | inode.c | 2201 const char *from_path, struct dentry *to_dentry, 2226 from_path, to_path, cifs_sb); 2252 .path = from_path, 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-6.6/security/ |
H A D | security.c | 1452 * @from_path: source mount point 1459 int security_move_mount(const struct path *from_path, in security_move_mount() argument 1462 return call_int_hook(move_mount, 0, from_path, to_path); in security_move_mount()
|
/kernel/linux/linux-5.10/security/selinux/ |
H A D | hooks.c | 2751 static int selinux_move_mount(const struct path *from_path, in selinux_move_mount() argument
|
/kernel/linux/linux-6.6/security/selinux/ |
H A D | hooks.c | 2758 static int selinux_move_mount(const struct path *from_path, in selinux_move_mount() argument
|