| /linux/tools/testing/selftests/filesystems/fat/ |
| H A D | run_fat_tests.sh | 44 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/security/apparmor/ |
| H A D | mount.c | 426 struct path old_path; in aa_bind_mount() local 437 error = kern_path(dev_name, LOOKUP_FOLLOW|LOOKUP_AUTOMOUNT, &old_path); in aa_bind_mount() 448 match_mnt(subj_cred, profile, path, buffer, &old_path, in aa_bind_mount() 453 path_put(&old_path); in aa_bind_mount() 520 struct path old_path; in aa_move_mount_old() local 525 error = kern_path(orig_name, LOOKUP_FOLLOW, &old_path); in aa_move_mount_old() 529 error = aa_move_mount(subj_cred, label, &old_path, path); in aa_move_mount_old() 530 path_put(&old_path); in aa_move_mount_old() 665 const struct path *old_path, in build_pivotroot() argument 677 AA_BUG(!old_path); in build_pivotroot() [all …]
|
| H A D | lsm.c | 398 struct path old_path = { .mnt = old_dir->mnt, in apparmor_path_rename() local 422 label, &old_path, in apparmor_path_rename() 429 label, &old_path, 0, in apparmor_path_rename() 775 static int apparmor_sb_pivotroot(const struct path *old_path, in apparmor_sb_pivotroot() argument 783 error = aa_pivotroot(current_cred(), label, old_path, new_path); in apparmor_sb_pivotroot()
|
| /linux/arch/um/os-Linux/ |
| H A D | main.c | 75 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/tools/testing/kunit/ |
| H A D | kunit_kernel.py | 309 old_path = get_old_kunitconfig_path(build_dir) 310 if os.path.exists(old_path): 311 os.remove(old_path) # write_to_file appends to the file 312 self._kconfig.write_to_file(old_path) 316 old_path = get_old_kunitconfig_path(build_dir) 317 if not os.path.exists(old_path): 320 old_kconfig = kunit_config.parse_file(old_path)
|
| /linux/fs/vboxsf/ |
| H A D | dir.c | 396 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 D | vboxsf_wrappers.c | 341 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 D | vfsmod.h | 141 struct shfl_string *old_path, struct shfl_fsobjinfo *buf);
|
| H A D | shfl_hostintf.h | 889 struct vmmdev_hgcm_function_parameter old_path; member
|
| /linux/tools/lib/subcmd/ |
| H A D | exec-cmd.c | 150 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/fs/ocfs2/ |
| H A D | ioctl.c | 894 const char __user *old_path; in ocfs2_ioctl() local 900 old_path = (const char __user *)(unsigned long)args.old_path; in ocfs2_ioctl() 904 return ocfs2_reflink_ioctl(inode, old_path, new_path, preserve); in ocfs2_ioctl() 971 return ocfs2_reflink_ioctl(inode, compat_ptr(args.old_path), in ocfs2_compat_ioctl()
|
| H A D | refcounttree.c | 4410 struct path old_path, new_path; in ocfs2_reflink_ioctl() local 4416 error = user_path_at(AT_FDCWD, oldname, 0, &old_path); in ocfs2_reflink_ioctl() 4430 if (old_path.mnt != new_path.mnt) { in ocfs2_reflink_ioctl() 4435 error = ocfs2_vfs_reflink(old_path.dentry, in ocfs2_reflink_ioctl() 4441 path_put(&old_path); in ocfs2_reflink_ioctl()
|
| /linux/security/apparmor/include/ |
| H A D | mount.h | 57 struct aa_label *label, const struct path *old_path,
|
| /linux/security/tomoyo/ |
| H A D | tomoyo.c | 441 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/fs/ |
| H A D | namei.c | 5684 struct path old_path, new_path; in do_linkat() local 5705 error = filename_lookup(olddfd, old, how, &old_path, NULL); in do_linkat() 5716 if (old_path.mnt != new_path.mnt) in do_linkat() 5719 error = may_linkat(idmap, &old_path); in do_linkat() 5722 error = security_path_link(old_path.dentry, &new_path, new_dentry); in do_linkat() 5725 error = vfs_link(old_path.dentry, idmap, new_path.dentry->d_inode, in do_linkat() 5732 path_put(&old_path); in do_linkat() 5737 path_put(&old_path); in do_linkat() 5742 path_put(&old_path); in do_linkat() 5981 struct path old_path, new_path; in do_renameat2() local [all …]
|
| /linux/fs/smb/server/ |
| H A D | vfs.c | 663 int ksmbd_vfs_rename(struct ksmbd_work *work, const struct path *old_path, in ksmbd_vfs_rename() argument 666 struct dentry *old_child = old_path->dentry; in ksmbd_vfs_rename() 692 if (old_path->mnt != new_path.mnt) { in ksmbd_vfs_rename() 697 err = mnt_want_write(old_path->mnt); in ksmbd_vfs_rename() 701 rd.mnt_idmap = mnt_idmap(old_path->mnt); in ksmbd_vfs_rename() 733 mnt_drop_write(old_path->mnt); in ksmbd_vfs_rename()
|
| /linux/fs/smb/client/ |
| H A D | cifsproto.h | 691 const char *old_path, in get_dfs_path() argument 695 return dfs_cache_find(xid, ses, nls_codepage, remap, old_path, in get_dfs_path()
|
| /linux/include/linux/ |
| H A D | security.h | 378 int security_sb_pivotroot(const struct path *old_path, const struct path *new_path); 822 static inline int security_sb_pivotroot(const struct path *old_path, in security_sb_pivotroot() argument
|
| H A D | lsm_hook_defs.h | 75 LSM_HOOK(int, 0, sb_pivotroot, const struct path *old_path,
|
| /linux/security/ |
| H A D | security.c | 1088 int security_sb_pivotroot(const struct path *old_path, in security_sb_pivotroot() argument 1091 return call_int_hook(sb_pivotroot, old_path, new_path); in security_sb_pivotroot()
|
| /linux/security/landlock/ |
| H A D | fs.c | 1510 static int hook_sb_pivotroot(const struct path *const old_path, in hook_sb_pivotroot() argument
|
| /linux/fs/btrfs/ |
| H A D | volumes.c | 742 char AUTO_KFREE(old_path); in is_same_device() 749 old_path = kzalloc(PATH_MAX, GFP_NOFS); in is_same_device() 750 if (!old_path) in is_same_device() 754 ret = strscpy(old_path, rcu_dereference(device->name), PATH_MAX); in is_same_device() 759 ret = kern_path(old_path, LOOKUP_FOLLOW, &old); in is_same_device()
|