Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/filesystems/fat/
H A Drun_fat_tests.sh57 local old_path="${MNT_PATH}/old_file"
60 echo old | sudo tee "${old_path}" >/dev/null 2>&1
62 sudo "${rename_exchange}" "${old_path}" "${new_path}" >/dev/null 2>&1
64 grep new "${old_path}" >/dev/null 2>&1
72 local old_path="${MNT_PATH}/old_file"
76 echo old | sudo tee "${old_path}" >/dev/null 2>&1
78 sudo "${rename_exchange}" "${old_path}" "${new_path}" >/dev/null 2>&1
80 grep new "${old_path}" >/dev/null 2>&1
/linux/security/apparmor/
H A Dmount.c361 struct path old_path; in aa_bind_mount() local
374 error = kern_path(dev_name, LOOKUP_FOLLOW|LOOKUP_AUTOMOUNT, &old_path); in aa_bind_mount()
386 match_mnt(profile, path, buffer, &old_path, in aa_bind_mount()
391 path_put(&old_path); in aa_bind_mount()
461 struct path old_path; in aa_move_mount_old() local
466 error = kern_path(orig_name, LOOKUP_FOLLOW, &old_path); in aa_move_mount_old()
470 error = aa_move_mount(subj_cred, label, &old_path, path); in aa_move_mount_old()
471 path_put(&old_path); in aa_move_mount_old()
608 const struct path *old_path, in build_pivotroot() argument
620 AA_BUG(!old_path); in build_pivotroot()
[all …]
H A Dlsm.c403 struct path old_path = { .mnt = old_dir->mnt, in apparmor_path_rename()
427 label, &old_path, in apparmor_path_rename()
434 label, &old_path, 0, in apparmor_path_rename()
774 static int apparmor_sb_pivotroot(const struct path *old_path, in apparmor_sb_pivotroot()
782 error = aa_pivotroot(current_cred(), label, old_path, new_path); in apparmor_sb_pivotroot()
402 struct path old_path = { .mnt = old_dir->mnt, apparmor_path_rename() local
773 apparmor_sb_pivotroot(const struct path * old_path,const struct path * new_path) apparmor_sb_pivotroot() argument
/linux/arch/um/os-Linux/
H A Dmain.c75 char *old_path = NULL; in setup_env_path() local
78 old_path = getenv("PATH"); in setup_env_path()
83 if (!old_path || (path_len = strlen(old_path)) == 0) { in setup_env_path()
96 snprintf(new_path, path_len, "PATH=%s" UML_LIB_PATH, old_path); in setup_env_path()
/linux/fs/vboxsf/
H A Ddir.c396 struct shfl_string *old_path, *new_path; in vboxsf_dir_rename() local
402 old_path = vboxsf_path_from_dentry(sbi, old_dentry); in vboxsf_dir_rename()
403 if (IS_ERR(old_path)) in vboxsf_dir_rename()
404 return PTR_ERR(old_path); in vboxsf_dir_rename()
415 err = vboxsf_rename(sbi->root, old_path, new_path, shfl_flags); in vboxsf_dir_rename()
424 __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.h147 struct shfl_string *old_path, struct shfl_fsobjinfo *buf);
H A Dshfl_hostintf.h889 struct vmmdev_hgcm_function_parameter old_path; member
/linux/tools/testing/kunit/
H A Dkunit_kernel.py310 old_path = get_old_kunitconfig_path(build_dir)
311 if os.path.exists(old_path):
312 os.remove(old_path) # write_to_file appends to the file
313 self._kconfig.write_to_file(old_path)
317 old_path = get_old_kunitconfig_path(build_dir)
318 if not os.path.exists(old_path):
321 old_kconfig = kunit_config.parse_file(old_path)
/linux/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/tools/testing/selftests/filesystems/
H A Dkernfs_test.c1102 char old_path[PATH_MAX], new_path[PATH_MAX]; in TEST_F() local
1107 snprintf(old_path, sizeof(old_path), "%s/lo", self->net); in TEST_F()
1111 ASSERT_EQ(stat(old_path, &st), 0); in TEST_F()
1125 EXPECT_EQ(stat(old_path, &st), -1); in TEST_F()
1168 char old_path[PATH_MAX], new_path[PATH_MAX]; in TEST_F() local
1174 snprintf(old_path, sizeof(old_path), "%s/lo", self->net); in TEST_F()
1195 if (lstat(old_path, &rst) && errno != ENOENT) in TEST_F()
1209 if (lstat(new_path, &st) || !lstat(old_path, &st)) { in TEST_F()
1215 if (lstat(old_path, &st) || !lstat(new_path, &st)) { in TEST_F()
/linux/fs/ocfs2/
H A Dioctl.c910 const char __user *old_path; in ocfs2_ioctl() local
916 old_path = (const char __user *)(unsigned long)args.old_path; in ocfs2_ioctl()
920 return ocfs2_reflink_ioctl(inode, old_path, new_path, preserve); in ocfs2_ioctl()
987 return ocfs2_reflink_ioctl(inode, compat_ptr(args.old_path), in ocfs2_compat_ioctl()
/linux/security/apparmor/include/
H A Dmount.h57 struct aa_label *label, const struct path *old_path,
/linux/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/tools/perf/
H A Dbuiltin-help.c376 const char *old_path = getenv("MANPATH"); in setup_man_path()
379 * old_path, the ':' at the end will let 'man' to try in setup_man_path()
381 * there is old_path, we need ':' as delimiter. */ in setup_man_path()
382 if (asprintf(&new_path, "%s:%s", system_path(PERF_MAN_PATH), old_path ?: "") > 0) { in setup_man_path()
374 const char *old_path = getenv("MANPATH"); setup_man_path() local
/linux/fs/smb/server/
H A Dvfs.c731 const struct path *old_path) in ksmbd_vfs_rename()
736 parent_fp = ksmbd_lookup_fd_inode(old_path->dentry->d_parent); in ksmbd_vfs_rename()
753 const struct path *old_path = &old_fp->filp->f_path; in ksmbd_vfs_rename()
754 struct dentry *old_child = old_path->dentry; in ksmbd_vfs_rename()
772 if (old_path->mnt != new_path.mnt) {
777 err = mnt_want_write(old_path->mnt);
781 rd.mnt_idmap = mnt_idmap(old_path->mnt); in ksmbd_vfs_truncate()
808 err = ksmbd_vfs_check_rename_share(work, old_path); in ksmbd_vfs_truncate()
824 mnt_drop_write(old_path->mnt); in ksmbd_vfs_listxattr()
665 ksmbd_vfs_check_rename_share(struct ksmbd_work * work,const struct path * old_path) ksmbd_vfs_check_rename_share() argument
687 const struct path *old_path = &old_fp->filp->f_path; ksmbd_vfs_rename() local
H A Dvfs.h95 const struct path *old_path);
/linux/fs/
H A Dnamespace.c3076 static struct mount *__do_loopback(const struct path *old_path, in __do_loopback() argument
3079 struct mount *old = real_mount(old_path->mnt); in __do_loopback()
3084 if (!may_copy_tree(old_path)) in __do_loopback()
3088 if (old_path->dentry->d_flags & DCACHE_NORCU) in __do_loopback()
3094 if (!recurse && has_locked_children(old, old_path->dentry)) in __do_loopback()
3098 return copy_tree(old, old_path->dentry, copy_flags); in __do_loopback()
3100 return clone_mnt(old, old_path->dentry, copy_flags); in __do_loopback()
3109 struct path old_path __free(path_put) = {}; in do_loopback()
3115 err = kern_path(old_name, LOOKUP_FOLLOW|LOOKUP_AUTOMOUNT, &old_path); in do_loopback()
3119 if (mnt_ns_loop(old_path in do_loopback()
3777 do_move_mount(const struct path * old_path,const struct path * new_path,enum mnt_tree_flags_t flags) do_move_mount() argument
[all...]
H A Dnamei.c5972 struct path old_path, new_path; in filename_linkat()
5991 error = filename_lookup(olddfd, old, how, &old_path, NULL); in filename_linkat()
6002 if (old_path.mnt != new_path.mnt) in filename_linkat()
6005 error = may_linkat(idmap, &old_path); in filename_linkat()
6008 error = security_path_link(old_path.dentry, &new_path, new_dentry); in filename_linkat()
6011 error = vfs_link(old_path.dentry, idmap, new_path.dentry->d_inode, in filename_linkat()
6018 path_put(&old_path); in filename_linkat()
6023 path_put(&old_path);
6028 path_put(&old_path); in SYSCALL_DEFINE5()
6269 struct path old_path, new_pat in filename_renameat2()
5964 struct path old_path, new_path; filename_linkat() local
6261 struct path old_path, new_path; filename_renameat2() local
[all...]
/linux/fs/smb/client/
H A Dcifsproto.h412 const char *old_path, in get_dfs_path()
416 return dfs_cache_find(xid, ses, nls_codepage, remap, old_path,
406 get_dfs_path(const unsigned int xid,struct cifs_ses * ses,const char * old_path,const struct nls_table * nls_codepage,struct dfs_info3_param * referral,int remap) get_dfs_path() argument
/linux/include/linux/
H A Dsecurity.h381 int security_sb_pivotroot(const struct path *old_path, const struct path *new_path);
838 static inline int security_sb_pivotroot(const struct path *old_path, in security_sb_set_mnt_opts()
829 security_sb_pivotroot(const struct path * old_path,const struct path * new_path) security_sb_pivotroot() argument
H A Dlsm_hook_defs.h75 LSM_HOOK(int, 0, sb_pivotroot, const struct path *old_path,
/linux/sound/hda/codecs/
H A Dgeneric.c4065 struct nid_path *old_path, *path; in parse_digital()
4076 old_path = get_input_path(codec, adc_idx, spec->cur_mux[adc_idx]);
4077 if (!old_path) in mux_select()
4079 if (old_path->active) in mux_select()
4080 snd_hda_activate_path(codec, old_path, false, false); in mux_select()
4098 path_power_down_sync(codec, old_path); in mux_select()
4082 struct nid_path *old_path, *path; mux_select() local
/linux/security/
H A Dsecurity.c1121 * @old_path: new location for current rootfs
1128 int security_sb_pivotroot(const struct path *old_path,
1131 return call_int_hook(sb_pivotroot, old_path, new_path); in security_sb_set_mnt_opts()
1114 security_sb_pivotroot(const struct path * old_path,const struct path * new_path) security_sb_pivotroot() argument
/linux/security/landlock/
H A Dfs.c1604 static int hook_sb_pivotroot(const struct path *const old_path, in hook_sb_pivotroot() argument