Home
last modified time | relevance | path

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

/linux/security/apparmor/
H A Dmount.c425 struct aa_label *label, const struct path *from_path, in aa_move_mount() argument
435 AA_BUG(!from_path); in aa_move_mount()
444 if (!our_mnt(from_path->mnt)) in aa_move_mount()
446 from_path = NULL; in aa_move_mount()
448 match_mnt(profile, to_path, to_buffer, from_path, in aa_move_mount()
H A Dlsm.c744 static int apparmor_move_mount(const struct path *from_path, in apparmor_move_mount()
753 error = aa_move_mount(current_cred(), label, from_path, in apparmor_move_mount()
743 apparmor_move_mount(const struct path * from_path,const struct path * to_path) apparmor_move_mount() argument
/linux/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.c57 static inline int sys_move_mount(int from_dfd, const char *from_path,
61 return syscall(__NR_move_mount, from_dfd, from_path, to_dfd, to_path, flags); in drop_priv_caps()
51 sys_move_mount(int from_dfd,const char * from_path,int to_dfd,const char * to_path,unsigned flags) sys_move_mount() argument
/linux/security/apparmor/include/
H A Dmount.h45 struct aa_label *label, const struct path *from_path,
/linux/fs/
H A Dnamespace.c3564 static int do_set_group(const struct path *from_path, const struct path *to_path) in do_set_group() argument
3566 struct mount *from = real_mount(from_path->mnt); in do_set_group()
3580 if (!path_mounted(from_path)) in do_set_group()
4726 static inline int vfs_move_mount(const struct path *from_path, in SYSCALL_DEFINE3()
4732 ret = security_move_mount(from_path, to_path); in vfs_move_mount()
4737 return do_set_group(from_path, to_path); in vfs_move_mount()
4739 return do_move_mount(from_path, to_path, mflags); in vfs_move_mount()
4756 struct path from_path __free(path_put) = {}; in SYSCALL_DEFINE5()
4815 ret = filename_lookup(from_dfd, from_name, lflags, &from_path, NULL); in SYSCALL_DEFINE5()
4819 return vfs_move_mount(&from_path, in SYSCALL_DEFINE5()
4729 vfs_move_mount(const struct path * from_path,const struct path * to_path,enum mnt_tree_flags_t mflags) vfs_move_mount() argument
[all...]
/linux/include/linux/
H A Dsecurity.h390 int security_move_mount(const struct path *from_path, const struct path *to_path);
860 static inline int security_move_mount(const struct path *from_path, in security_path_notify()
851 security_move_mount(const struct path * from_path,const struct path * to_path) security_move_mount() argument
H A Dlsm_hook_defs.h82 LSM_HOOK(int, 0, move_mount, const struct path *from_path,
/linux/fs/btrfs/
H A Dsend.c3447 struct fs_path *from_path __free(fs_path_free) = NULL; in apply_dir_move()
3461 from_path = fs_path_alloc(); in apply_dir_move()
3462 if (!name || !from_path) in apply_dir_move()
3474 pm->gen, from_path); in apply_dir_move()
3481 from_path); in apply_dir_move()
3484 ret = fs_path_add_path(from_path, name); in apply_dir_move()
3516 ret = send_rename(sctx, from_path, to_path); in apply_dir_move()
/linux/fs/smb/client/
H A Dinode.c2458 const char *from_path, struct dentry *to_dentry,
2485 from_path, to_path, cifs_sb);
2518 .path = from_path,
2456 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
/linux/security/
H A Dsecurity.c1186 * @from_path: source mount point
1193 int security_move_mount(const struct path *from_path,
1196 return call_int_hook(move_mount, from_path, to_path); in security_path_notify()
1179 security_move_mount(const struct path * from_path,const struct path * to_path) security_move_mount() argument
/linux/security/landlock/
H A Dfs.c1549 static int hook_move_mount(const struct path *const from_path, in hook_move_mount() argument
/linux/security/selinux/
H A Dhooks.c2837 static int selinux_move_mount(const struct path *from_path, in selinux_move_mount()
2835 selinux_move_mount(const struct path * from_path,const struct path * to_path) selinux_move_mount() argument