Home
last modified time | relevance | path

Searched refs:from_path (Results 1 – 14 of 14) sorted by relevance

/linux-6.15/security/apparmor/
H A Dmount.c488 struct aa_label *label, const struct path *from_path, in aa_move_mount() argument
496 AA_BUG(!from_path); in aa_move_mount()
505 if (!our_mnt(from_path->mnt)) in aa_move_mount()
507 from_path = NULL; in aa_move_mount()
510 from_path, from_buffer, in aa_move_mount()
H A Dlsm.c740 static int apparmor_move_mount(const struct path *from_path, in apparmor_move_mount() argument
748 error = aa_move_mount(current_cred(), label, from_path, in apparmor_move_mount()
/linux-6.15/tools/testing/selftests/bpf/prog_tests/
H A Dbpf_obj_pinning.c29 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()
H A Dtoken.c51 static inline int sys_move_mount(int from_dfd, const char *from_path, in sys_move_mount() argument
55 return syscall(__NR_move_mount, from_dfd, from_path, to_dfd, to_path, flags); in sys_move_mount()
/linux-6.15/security/apparmor/include/
H A Dmount.h45 struct aa_label *label, const struct path *from_path,
/linux-6.15/fs/
H A Dnamespace.c3391 static int do_set_group(struct path *from_path, struct path *to_path) in do_set_group() argument
3396 from = real_mount(from_path->mnt); in do_set_group()
3417 if (!path_mounted(from_path)) in do_set_group()
4593 static inline int vfs_move_mount(struct path *from_path, struct path *to_path, in vfs_move_mount() argument
4598 ret = security_move_mount(from_path, to_path); in vfs_move_mount()
4603 return do_set_group(from_path, to_path); in vfs_move_mount()
4605 return do_move_mount(from_path, to_path, mflags); in vfs_move_mount()
4622 struct path from_path __free(path_put) = {}; in SYSCALL_DEFINE5()
4681 ret = filename_lookup(from_dfd, from_name, lflags, &from_path, NULL); in SYSCALL_DEFINE5()
4685 return vfs_move_mount(&from_path, &to_path, mflags); in SYSCALL_DEFINE5()
/linux-6.15/fs/btrfs/
H A Dsend.c3549 struct fs_path *from_path = NULL; in apply_dir_move() local
3563 from_path = fs_path_alloc(); in apply_dir_move()
3564 if (!name || !from_path) { in apply_dir_move()
3578 pm->gen, from_path); in apply_dir_move()
3585 from_path); in apply_dir_move()
3588 ret = fs_path_add_path(from_path, name); in apply_dir_move()
3620 ret = send_rename(sctx, from_path, to_path); in apply_dir_move()
3682 fs_path_free(from_path); in apply_dir_move()
/linux-6.15/include/linux/
H A Dsecurity.h390 int security_move_mount(const struct path *from_path, const struct path *to_path);
843 static inline int security_move_mount(const struct path *from_path, in security_move_mount() argument
H A Dlsm_hook_defs.h82 LSM_HOOK(int, 0, move_mount, const struct path *from_path,
H A Dsyscalls.h958 asmlinkage long sys_move_mount(int from_dfd, const char __user *from_path,
/linux-6.15/fs/smb/client/
H A Dinode.c2378 const char *from_path, struct dentry *to_dentry, argument
2403 from_path, to_path, cifs_sb);
2436 .path = from_path,
/linux-6.15/security/landlock/
H A Dfs.c1437 static int hook_move_mount(const struct path *const from_path, in hook_move_mount() argument
/linux-6.15/security/
H A Dsecurity.c1661 int security_move_mount(const struct path *from_path, in security_move_mount() argument
1664 return call_int_hook(move_mount, from_path, to_path); in security_move_mount()
/linux-6.15/security/selinux/
H A Dhooks.c2770 static int selinux_move_mount(const struct path *from_path, in selinux_move_mount() argument