/linux-master/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-master/arch/um/os-Linux/ |
H A D | main.c | 77 char *old_path = NULL; local 80 old_path = getenv("PATH"); 85 if (!old_path || (path_len = strlen(old_path)) == 0) { 98 snprintf(new_path, path_len, "PATH=%s" UML_LIB_PATH, old_path);
|
/linux-master/security/apparmor/ |
H A D | mount.c | 426 struct path old_path; local 437 error = kern_path(dev_name, LOOKUP_FOLLOW|LOOKUP_AUTOMOUNT, &old_path); 448 match_mnt(subj_cred, profile, path, buffer, &old_path, 453 path_put(&old_path); 520 struct path old_path; local 525 error = kern_path(orig_name, LOOKUP_FOLLOW, &old_path); 529 error = aa_move_mount(subj_cred, label, &old_path, path); 530 path_put(&old_path); 666 const struct path *old_path, 679 AA_BUG(!old_path); 662 build_pivotroot(const struct cred *subj_cred, struct aa_profile *profile, const struct path *new_path, char *new_buffer, const struct path *old_path, char *old_buffer) argument 718 aa_pivotroot(const struct cred *subj_cred, struct aa_label *label, const struct path *old_path, const struct path *new_path) argument [all...] |
H A D | lsm.c | 397 struct path old_path = { .mnt = old_dir->mnt, local 421 label, &old_path, 428 label, &old_path, 0, 767 static int apparmor_sb_pivotroot(const struct path *old_path, argument 775 error = aa_pivotroot(current_cred(), label, old_path, new_path);
|
/linux-master/fs/ |
H A D | init.c | 168 struct path old_path, new_path; local 172 error = kern_path(oldname, 0, &old_path); 182 if (old_path.mnt != new_path.mnt) 185 error = may_linkat(idmap, &old_path); 188 error = security_path_link(old_path.dentry, &new_path, new_dentry); 191 error = vfs_link(old_path.dentry, idmap, new_path.dentry->d_inode, 196 path_put(&old_path);
|
H A D | namei.c | 4634 struct path old_path, new_path; local 4656 error = filename_lookup(olddfd, old, how, &old_path, NULL); 4667 if (old_path.mnt != new_path.mnt) 4670 error = may_linkat(idmap, &old_path); 4673 error = security_path_link(old_path.dentry, &new_path, new_dentry); 4676 error = vfs_link(old_path.dentry, idmap, new_path.dentry->d_inode, 4683 path_put(&old_path); 4688 path_put(&old_path); 4693 path_put(&old_path); 4925 struct path old_path, new_pat local [all...] |
H A D | namespace.c | 2581 static struct mount *__do_loopback(struct path *old_path, int recurse) argument 2583 struct mount *mnt = ERR_PTR(-EINVAL), *old = real_mount(old_path->mnt); 2588 if (!check_mnt(old) && old_path->dentry->d_op != &ns_dentry_operations) 2591 if (!recurse && has_locked_children(old, old_path->dentry)) 2595 mnt = copy_tree(old, old_path->dentry, CL_COPY_MNT_NS_FILE); 2597 mnt = clone_mnt(old, old_path->dentry, 0); 2611 struct path old_path; local 2617 err = kern_path(old_name, LOOKUP_FOLLOW|LOOKUP_AUTOMOUNT, &old_path); 2622 if (mnt_ns_loop(old_path.dentry)) 2635 mnt = __do_loopback(&old_path, recurs 3115 do_move_mount(struct path *old_path, struct path *new_path, bool beneath) argument 3213 struct path old_path; local [all...] |
/linux-master/tools/lib/subcmd/ |
H A D | exec-cmd.c | 150 const char *old_path = getenv("PATH"); local 158 if (old_path) 159 astrcat(&new_path, old_path);
|
/linux-master/security/apparmor/include/ |
H A D | mount.h | 57 struct aa_label *label, const struct path *old_path,
|
/linux-master/fs/vboxsf/ |
H A D | dir.c | 402 struct shfl_string *old_path, *new_path; local 408 old_path = vboxsf_path_from_dentry(sbi, old_dentry); 409 if (IS_ERR(old_path)) 410 return PTR_ERR(old_path); 421 err = vboxsf_rename(sbi->root, old_path, new_path, shfl_flags); 430 __putname(old_path);
|
H A D | vboxsf_wrappers.c | 341 struct shfl_string *old_path, struct shfl_fsobjinfo *buf) 352 parms.old_path.type = VMMDEV_HGCM_PARM_TYPE_LINADDR_KERNEL_IN; 353 parms.old_path.u.pointer.size = shfl_string_buf_size(old_path); 354 parms.old_path.u.pointer.u.linear_addr = (uintptr_t)old_path; 340 vboxsf_symlink(u32 root, struct shfl_string *new_path, struct shfl_string *old_path, struct shfl_fsobjinfo *buf) argument
|
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 in struct:shfl_symlink
|
/linux-master/tools/testing/kunit/ |
H A D | kunit_kernel.py | 295 old_path = get_old_kunitconfig_path(build_dir) 296 if os.path.exists(old_path): 297 os.remove(old_path) # write_to_file appends to the file 298 self._kconfig.write_to_file(old_path) 302 old_path = get_old_kunitconfig_path(build_dir) 303 if not os.path.exists(old_path): 306 old_kconfig = kunit_config.parse_file(old_path)
|
/linux-master/fs/ocfs2/ |
H A D | ocfs2_ioctl.h | 55 __u64 old_path; member in struct:reflink_arguments
|
H A D | ioctl.c | 897 const char __user *old_path; local 903 old_path = (const char __user *)(unsigned long)args.old_path; 907 return ocfs2_reflink_ioctl(inode, old_path, new_path, preserve); 974 return ocfs2_reflink_ioctl(inode, compat_ptr(args.old_path),
|
H A D | refcounttree.c | 4397 struct path old_path, new_path; local 4403 error = user_path_at(AT_FDCWD, oldname, 0, &old_path); 4417 if (old_path.mnt != new_path.mnt) { 4422 error = ocfs2_vfs_reflink(old_path.dentry, 4428 path_put(&old_path);
|
/linux-master/tools/perf/ |
H A D | builtin-help.c | 333 const char *old_path = getenv("MANPATH"); local 336 * old_path, the ':' at the end will let 'man' to try 338 * there is old_path, we need ':' as delimiter. */ 339 if (asprintf(&new_path, "%s:%s", system_path(PERF_MAN_PATH), old_path ?: "") > 0) {
|
/linux-master/security/tomoyo/ |
H A D | tomoyo.c | 436 * @old_path: Pointer to "struct path". 441 static int tomoyo_sb_pivotroot(const struct path *old_path, const struct path *new_path) argument 443 return tomoyo_path2_perm(TOMOYO_TYPE_PIVOT_ROOT, new_path, old_path);
|
/linux-master/fs/smb/server/ |
H A D | vfs.h | 89 int ksmbd_vfs_rename(struct ksmbd_work *work, const struct path *old_path,
|
H A D | vfs.c | 683 int ksmbd_vfs_rename(struct ksmbd_work *work, const struct path *old_path, argument 687 struct dentry *old_child = old_path->dentry; 713 if (old_path->mnt != new_path.mnt) { 718 err = mnt_want_write(old_path->mnt); 777 rd.old_mnt_idmap = mnt_idmap(old_path->mnt), 795 mnt_drop_write(old_path->mnt);
|
/linux-master/fs/smb/client/ |
H A D | cifsproto.h | 689 const char *old_path, 693 return dfs_cache_find(xid, ses, nls_codepage, remap, old_path, 688 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) argument
|
/linux-master/sound/pci/hda/ |
H A D | hda_generic.c | 4093 struct nid_path *old_path, *path; local 4104 old_path = get_input_path(codec, adc_idx, spec->cur_mux[adc_idx]); 4105 if (!old_path) 4107 if (old_path->active) 4108 snd_hda_activate_path(codec, old_path, false, false); 4126 path_power_down_sync(codec, old_path);
|
/linux-master/include/linux/ |
H A D | security.h | 319 int security_sb_pivotroot(const struct path *old_path, const struct path *new_path); 738 static inline int security_sb_pivotroot(const struct path *old_path, argument
|
H A D | lsm_hook_defs.h | 75 LSM_HOOK(int, 0, sb_pivotroot, const struct path *old_path,
|