Home
last modified time | relevance | path

Searched refs:old_path (Results 1 – 25 of 25) sorted by relevance

/kernel/linux/linux-5.10/arch/um/os-Linux/
Dmain.c77 char *old_path = NULL; in setup_env_path() local
80 old_path = getenv("PATH"); in setup_env_path()
85 if (!old_path || (path_len = strlen(old_path)) == 0) { in setup_env_path()
98 snprintf(new_path, path_len, "PATH=%s" UML_LIB_PATH, old_path); in setup_env_path()
/kernel/linux/linux-5.10/security/apparmor/
Dmount.c428 struct path old_path; in aa_bind_mount() local
439 error = kern_path(dev_name, LOOKUP_FOLLOW|LOOKUP_AUTOMOUNT, &old_path); in aa_bind_mount()
450 match_mnt(profile, path, buffer, &old_path, old_buffer, in aa_bind_mount()
455 path_put(&old_path); in aa_bind_mount()
490 struct path old_path; in aa_move_mount() local
499 error = kern_path(orig_name, LOOKUP_FOLLOW, &old_path); in aa_move_mount()
509 match_mnt(profile, path, buffer, &old_path, old_buffer, in aa_move_mount()
514 path_put(&old_path); in aa_move_mount()
642 const struct path *old_path, in build_pivotroot() argument
653 AA_BUG(!old_path); in build_pivotroot()
[all …]
Dlsm.c364 struct path old_path = { .mnt = old_dir->mnt, in apparmor_path_rename() local
372 error = aa_path_perm(OP_RENAME_SRC, label, &old_path, 0, in apparmor_path_rename()
574 static int apparmor_sb_pivotroot(const struct path *old_path, in apparmor_sb_pivotroot() argument
582 error = aa_pivotroot(label, old_path, new_path); in apparmor_sb_pivotroot()
/kernel/linux/linux-5.10/fs/
Dinit.c169 struct path old_path, new_path; in init_link() local
172 error = kern_path(oldname, 0, &old_path); in init_link()
182 if (old_path.mnt != new_path.mnt) in init_link()
184 error = may_linkat(&old_path); in init_link()
187 error = security_path_link(old_path.dentry, &new_path, new_dentry); in init_link()
190 error = vfs_link(old_path.dentry, new_path.dentry->d_inode, new_dentry, in init_link()
195 path_put(&old_path); in init_link()
Dnamespace.c2330 static struct mount *__do_loopback(struct path *old_path, int recurse) in __do_loopback() argument
2332 struct mount *mnt = ERR_PTR(-EINVAL), *old = real_mount(old_path->mnt); in __do_loopback()
2337 if (!check_mnt(old) && old_path->dentry->d_op != &ns_dentry_operations) in __do_loopback()
2340 if (!recurse && has_locked_children(old, old_path->dentry)) in __do_loopback()
2344 mnt = copy_tree(old, old_path->dentry, CL_COPY_MNT_NS_FILE); in __do_loopback()
2346 mnt = clone_mnt(old, old_path->dentry, 0); in __do_loopback()
2360 struct path old_path; in do_loopback() local
2366 err = kern_path(old_name, LOOKUP_FOLLOW|LOOKUP_AUTOMOUNT, &old_path); in do_loopback()
2371 if (mnt_ns_loop(old_path.dentry)) in do_loopback()
2384 mnt = __do_loopback(&old_path, recurse); in do_loopback()
[all …]
Dnamei.c4169 struct path old_path, new_path; in do_linkat() local
4190 error = user_path_at(olddfd, oldname, how, &old_path); in do_linkat()
4201 if (old_path.mnt != new_path.mnt) in do_linkat()
4203 error = may_linkat(&old_path); in do_linkat()
4206 error = security_path_link(old_path.dentry, &new_path, new_dentry); in do_linkat()
4209 error = vfs_link(old_path.dentry, new_path.dentry->d_inode, new_dentry, &delegated_inode); in do_linkat()
4215 path_put(&old_path); in do_linkat()
4220 path_put(&old_path); in do_linkat()
4225 path_put(&old_path); in do_linkat()
4426 struct path old_path, new_path; in do_renameat2() local
[all …]
/kernel/linux/linux-5.10/tools/lib/subcmd/
Dexec-cmd.c142 const char *old_path = getenv("PATH"); in setup_path() local
150 if (old_path) in setup_path()
151 astrcat(&new_path, old_path); in setup_path()
/kernel/linux/linux-5.10/fs/vboxsf/
Ddir.c398 struct shfl_string *old_path, *new_path; in vboxsf_dir_rename() local
404 old_path = vboxsf_path_from_dentry(sbi, old_dentry); in vboxsf_dir_rename()
405 if (IS_ERR(old_path)) in vboxsf_dir_rename()
406 return PTR_ERR(old_path); in vboxsf_dir_rename()
417 err = vboxsf_rename(sbi->root, old_path, new_path, shfl_flags); in vboxsf_dir_rename()
426 __putname(old_path); in vboxsf_dir_rename()
Dvboxsf_wrappers.c341 struct shfl_string *old_path, struct shfl_fsobjinfo *buf) in vboxsf_symlink() argument
352 parms.old_path.type = VMMDEV_HGCM_PARM_TYPE_LINADDR_KERNEL_IN; in vboxsf_symlink()
353 parms.old_path.u.pointer.size = shfl_string_buf_size(old_path); in vboxsf_symlink()
354 parms.old_path.u.pointer.u.linear_addr = (uintptr_t)old_path; in vboxsf_symlink()
Dvfsmod.h139 struct shfl_string *old_path, struct shfl_fsobjinfo *buf);
Dshfl_hostintf.h889 struct vmmdev_hgcm_function_parameter old_path; member
/kernel/linux/linux-5.10/security/apparmor/include/
Dmount.h47 int aa_pivotroot(struct aa_label *label, const struct path *old_path,
/kernel/linux/linux-5.10/fs/ocfs2/
Dioctl.c845 const char __user *old_path; in ocfs2_ioctl() local
908 old_path = (const char __user *)(unsigned long)args.old_path; in ocfs2_ioctl()
912 return ocfs2_reflink_ioctl(inode, old_path, new_path, preserve); in ocfs2_ioctl()
981 return ocfs2_reflink_ioctl(inode, compat_ptr(args.old_path), in ocfs2_compat_ioctl()
Docfs2_ioctl.h65 __u64 old_path; member
Drefcounttree.c4426 struct path old_path, new_path; in ocfs2_reflink_ioctl() local
4432 error = user_path_at(AT_FDCWD, oldname, 0, &old_path); in ocfs2_reflink_ioctl()
4446 if (old_path.mnt != new_path.mnt) { in ocfs2_reflink_ioctl()
4451 error = ocfs2_vfs_reflink(old_path.dentry, in ocfs2_reflink_ioctl()
4457 path_put(&old_path); in ocfs2_reflink_ioctl()
/kernel/linux/linux-5.10/tools/perf/
Dbuiltin-help.c331 const char *old_path = getenv("MANPATH"); in setup_man_path() local
337 if (asprintf(&new_path, "%s:%s", system_path(PERF_MAN_PATH), old_path ?: "") > 0) { in setup_man_path()
/kernel/linux/linux-5.10/security/tomoyo/
Dtomoyo.c420 static int tomoyo_sb_pivotroot(const struct path *old_path, const struct path *new_path) in tomoyo_sb_pivotroot() argument
422 return tomoyo_path2_perm(TOMOYO_TYPE_PIVOT_ROOT, new_path, old_path); in tomoyo_sb_pivotroot()
/kernel/linux/linux-5.10/fs/hmdfs/
Dhmdfs_client.h48 int hmdfs_client_start_rename(struct hmdfs_peer *con, const char *old_path,
Dhmdfs_client.c619 int hmdfs_client_start_rename(struct hmdfs_peer *con, const char *old_path, in hmdfs_client_start_rename() argument
624 int old_path_len = strlen(old_path); in hmdfs_client_start_rename()
650 strncpy(rename_req->path, old_path, old_path_len); in hmdfs_client_start_rename()
Dhmdfs_dentryfile.c1090 static int hmdfs_linkat(struct path *old_path, const char *newname) in hmdfs_linkat() argument
1104 if (old_path->mnt != new_path.mnt) in hmdfs_linkat()
1107 error = vfs_link(old_path->dentry, new_path.dentry->d_inode, new_dentry, in hmdfs_linkat()
/kernel/linux/linux-5.10/fs/cifs/
Dcifsproto.h628 const char *old_path, in get_dfs_path() argument
632 return dfs_cache_find(xid, ses, nls_codepage, remap, old_path, in get_dfs_path()
/kernel/linux/linux-5.10/include/linux/
Dsecurity.h303 int security_sb_pivotroot(const struct path *old_path, const struct path *new_path);
668 static inline int security_sb_pivotroot(const struct path *old_path, in security_sb_pivotroot() argument
Dlsm_hook_defs.h72 LSM_HOOK(int, 0, sb_pivotroot, const struct path *old_path,
/kernel/linux/linux-5.10/sound/pci/hda/
Dhda_generic.c4205 struct nid_path *old_path, *path; in mux_select() local
4216 old_path = get_input_path(codec, adc_idx, spec->cur_mux[adc_idx]); in mux_select()
4217 if (!old_path) in mux_select()
4219 if (old_path->active) in mux_select()
4220 snd_hda_activate_path(codec, old_path, false, false); in mux_select()
4238 path_power_down_sync(codec, old_path); in mux_select()
/kernel/linux/linux-5.10/security/
Dsecurity.c941 int security_sb_pivotroot(const struct path *old_path, const struct path *new_path) in security_sb_pivotroot() argument
943 return call_int_hook(sb_pivotroot, 0, old_path, new_path); in security_sb_pivotroot()