Home
last modified time | relevance | path

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

12

/linux-6.15/tools/testing/selftests/filesystems/fat/
H A Drun_fat_tests.sh44 local old_path="${MNT_PATH}/old_file"
47 echo old | sudo tee "${old_path}" >/dev/null 2>&1
49 sudo "${rename_exchange}" "${old_path}" "${new_path}" >/dev/null 2>&1
51 grep new "${old_path}" >/dev/null 2>&1
59 local old_path="${MNT_PATH}/old_file"
63 echo old | sudo tee "${old_path}" >/dev/null 2>&1
65 sudo "${rename_exchange}" "${old_path}" "${new_path}" >/dev/null 2>&1
67 grep new "${old_path}" >/dev/null 2>&1
/linux-6.15/security/apparmor/
H A Dmount.c428 struct path old_path; in aa_bind_mount() local
455 path_put(&old_path); in aa_bind_mount()
522 struct path old_path; in aa_move_mount_old() local
527 error = kern_path(orig_name, LOOKUP_FOLLOW, &old_path); in aa_move_mount_old()
532 path_put(&old_path); in aa_move_mount_old()
668 const struct path *old_path, in build_pivotroot() argument
681 AA_BUG(!old_path); in build_pivotroot()
687 error = aa_path_name(old_path, path_flags(profile, old_path), in build_pivotroot()
721 const struct path *old_path, in aa_pivotroot() argument
730 AA_BUG(!old_path); in aa_pivotroot()
[all …]
H A Dlsm.c397 struct path old_path = { .mnt = old_dir->mnt, in apparmor_path_rename() local
421 label, &old_path, in apparmor_path_rename()
428 label, &old_path, 0, in apparmor_path_rename()
768 static int apparmor_sb_pivotroot(const struct path *old_path, in apparmor_sb_pivotroot() argument
776 error = aa_pivotroot(current_cred(), label, old_path, new_path); in apparmor_sb_pivotroot()
/linux-6.15/arch/um/os-Linux/
H A 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()
/linux-6.15/fs/
H A Dinit.c168 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()
185 error = may_linkat(idmap, &old_path); in init_link()
188 error = security_path_link(old_path.dentry, &new_path, new_dentry); in init_link()
191 error = vfs_link(old_path.dentry, idmap, new_path.dentry->d_inode, in init_link()
196 path_put(&old_path); in init_link()
H A Dnamei.c4876 struct path old_path, new_path; in do_linkat() local
4908 if (old_path.mnt != new_path.mnt) in do_linkat()
4911 error = may_linkat(idmap, &old_path); in do_linkat()
4924 path_put(&old_path); in do_linkat()
4929 path_put(&old_path); in do_linkat()
4934 path_put(&old_path); in do_linkat()
5166 struct path old_path, new_path; in do_renameat2() local
5199 if (old_path.mnt != new_path.mnt) in do_renameat2()
5211 error = mnt_want_write(old_path.mnt); in do_renameat2()
5283 mnt_drop_write(old_path.mnt); in do_renameat2()
[all …]
H A Dnamespace.c3035 if (!may_copy_tree(old_path)) in __do_loopback()
3058 struct path old_path; in do_loopback() local
3069 if (mnt_ns_loop(old_path.dentry)) in do_loopback()
3082 mnt = __do_loopback(&old_path, recurse); in do_loopback()
3097 path_put(&old_path); in do_loopback()
3630 old = real_mount(old_path->mnt); in do_move_mount()
3680 if (!path_mounted(old_path)) in do_move_mount()
3684 d_is_dir(old_path->dentry)) in do_move_mount()
3742 struct path old_path; in do_move_mount_old() local
3752 err = do_move_mount(&old_path, path, 0); in do_move_mount_old()
[all …]
/linux-6.15/tools/testing/kunit/
H A Dkunit_kernel.py301 old_path = get_old_kunitconfig_path(build_dir)
302 if os.path.exists(old_path):
303 os.remove(old_path) # write_to_file appends to the file
304 self._kconfig.write_to_file(old_path)
308 old_path = get_old_kunitconfig_path(build_dir)
309 if not os.path.exists(old_path):
312 old_kconfig = kunit_config.parse_file(old_path)
/linux-6.15/tools/lib/subcmd/
H A Dexec-cmd.c150 const char *old_path = getenv("PATH"); in setup_path() local
158 if (old_path) in setup_path()
159 astrcat(&new_path, old_path); in setup_path()
/linux-6.15/fs/vboxsf/
H A Ddir.c403 struct shfl_string *old_path, *new_path; in vboxsf_dir_rename() local
409 old_path = vboxsf_path_from_dentry(sbi, old_dentry); in vboxsf_dir_rename()
410 if (IS_ERR(old_path)) in vboxsf_dir_rename()
411 return PTR_ERR(old_path); in vboxsf_dir_rename()
422 err = vboxsf_rename(sbi->root, old_path, new_path, shfl_flags); in vboxsf_dir_rename()
431 __putname(old_path); in vboxsf_dir_rename()
H A 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()
H A Dvfsmod.h141 struct shfl_string *old_path, struct shfl_fsobjinfo *buf);
H A Dshfl_hostintf.h889 struct vmmdev_hgcm_function_parameter old_path; member
/linux-6.15/security/apparmor/include/
H A Dmount.h57 struct aa_label *label, const struct path *old_path,
/linux-6.15/fs/ocfs2/
H A Dioctl.c898 const char __user *old_path; in ocfs2_ioctl() local
904 old_path = (const char __user *)(unsigned long)args.old_path; in ocfs2_ioctl()
908 return ocfs2_reflink_ioctl(inode, old_path, new_path, preserve); in ocfs2_ioctl()
975 return ocfs2_reflink_ioctl(inode, compat_ptr(args.old_path), in ocfs2_compat_ioctl()
H A Docfs2_ioctl.h55 __u64 old_path; member
H A Drefcounttree.c4409 struct path old_path, new_path; in ocfs2_reflink_ioctl() local
4415 error = user_path_at(AT_FDCWD, oldname, 0, &old_path); in ocfs2_reflink_ioctl()
4429 if (old_path.mnt != new_path.mnt) { in ocfs2_reflink_ioctl()
4434 error = ocfs2_vfs_reflink(old_path.dentry, in ocfs2_reflink_ioctl()
4440 path_put(&old_path); in ocfs2_reflink_ioctl()
/linux-6.15/tools/perf/
H A Dbuiltin-help.c333 const char *old_path = getenv("MANPATH"); in setup_man_path() local
339 if (asprintf(&new_path, "%s:%s", system_path(PERF_MAN_PATH), old_path ?: "") > 0) { in setup_man_path()
/linux-6.15/security/tomoyo/
H A Dtomoyo.c441 static int tomoyo_sb_pivotroot(const struct path *old_path, const struct path *new_path) in tomoyo_sb_pivotroot() argument
443 return tomoyo_path2_perm(TOMOYO_TYPE_PIVOT_ROOT, new_path, old_path); in tomoyo_sb_pivotroot()
/linux-6.15/fs/smb/server/
H A Dvfs.h90 int ksmbd_vfs_rename(struct ksmbd_work *work, const struct path *old_path,
H A Dvfs.c672 int ksmbd_vfs_rename(struct ksmbd_work *work, const struct path *old_path, in ksmbd_vfs_rename() argument
676 struct dentry *old_child = old_path->dentry; in ksmbd_vfs_rename()
711 if (old_path->mnt != new_path.mnt) { in ksmbd_vfs_rename()
716 err = mnt_want_write(old_path->mnt); in ksmbd_vfs_rename()
765 rd.old_mnt_idmap = mnt_idmap(old_path->mnt), in ksmbd_vfs_rename()
783 mnt_drop_write(old_path->mnt); in ksmbd_vfs_rename()
/linux-6.15/fs/smb/client/
H A Dcifsproto.h679 const char *old_path, in get_dfs_path() argument
683 return dfs_cache_find(xid, ses, nls_codepage, remap, old_path, in get_dfs_path()
/linux-6.15/include/linux/
H A Dsecurity.h381 int security_sb_pivotroot(const struct path *old_path, const struct path *new_path);
821 static inline int security_sb_pivotroot(const struct path *old_path, in security_sb_pivotroot() argument
H A Dlsm_hook_defs.h75 LSM_HOOK(int, 0, sb_pivotroot, const struct path *old_path,
/linux-6.15/sound/pci/hda/
H A Dhda_generic.c4093 struct nid_path *old_path, *path; in mux_select() local
4104 old_path = get_input_path(codec, adc_idx, spec->cur_mux[adc_idx]); in mux_select()
4105 if (!old_path) in mux_select()
4107 if (old_path->active) in mux_select()
4108 snd_hda_activate_path(codec, old_path, false, false); in mux_select()
4126 path_power_down_sync(codec, old_path); in mux_select()

12