| /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/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/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 | 399 struct path old_path = { .mnt = old_dir->mnt, in apparmor_path_rename() local 423 label, &old_path, in apparmor_path_rename() 430 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/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/tools/testing/kunit/ |
| H A D | kunit_kernel.py | 310 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/fs/vboxsf/ |
| 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 | shfl_hostintf.h | 889 struct vmmdev_hgcm_function_parameter old_path; member
|
| /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/tools/perf/ |
| H A D | builtin-help.c | 374 const char *old_path = getenv("MANPATH"); in setup_man_path() local 380 if (asprintf(&new_path, "%s:%s", system_path(PERF_MAN_PATH), old_path ?: "") > 0) { in setup_man_path()
|
| /linux/fs/smb/server/ |
| H A D | vfs.c | 665 const struct path *old_path) in ksmbd_vfs_check_rename_share() argument 670 parent_fp = ksmbd_lookup_fd_inode(old_path->dentry->d_parent); in ksmbd_vfs_check_rename_share() 687 const struct path *old_path = &old_fp->filp->f_path; in ksmbd_vfs_rename() local 688 struct dentry *old_child = old_path->dentry; in ksmbd_vfs_rename() 706 if (old_path->mnt != new_path.mnt) { in ksmbd_vfs_rename() 711 err = mnt_want_write(old_path->mnt); in ksmbd_vfs_rename() 715 rd.mnt_idmap = mnt_idmap(old_path->mnt); in ksmbd_vfs_rename() 742 err = ksmbd_vfs_check_rename_share(work, old_path); in ksmbd_vfs_rename() 758 mnt_drop_write(old_path->mnt); in ksmbd_vfs_rename()
|
| /linux/fs/ |
| H A D | namei.c | 5954 struct path old_path, new_path; in filename_linkat() local 5973 error = filename_lookup(olddfd, old, how, &old_path, NULL); in filename_linkat() 5984 if (old_path.mnt != new_path.mnt) in filename_linkat() 5987 error = may_linkat(idmap, &old_path); in filename_linkat() 5990 error = security_path_link(old_path.dentry, &new_path, new_dentry); in filename_linkat() 5993 error = vfs_link(old_path.dentry, idmap, new_path.dentry->d_inode, in filename_linkat() 6000 path_put(&old_path); in filename_linkat() 6005 path_put(&old_path); in filename_linkat() 6010 path_put(&old_path); in filename_linkat() 6251 struct path old_path, new_path; in filename_renameat2() local [all …]
|
| /linux/fs/smb/client/ |
| H A D | cifsproto.h | 406 const char *old_path, in get_dfs_path() argument 410 return dfs_cache_find(xid, ses, nls_codepage, remap, old_path, in get_dfs_path()
|
| /linux/sound/hda/codecs/ |
| H A D | generic.c | 4065 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/landlock/ |
| H A D | fs.c | 1598 static int hook_sb_pivotroot(const struct path *const old_path, in hook_file_alloc_security() 1491 hook_sb_pivotroot(const struct path * const old_path,const struct path * const new_path) hook_sb_pivotroot() argument
|
| /linux/security/ |
| H A D | security.c | 1107 * @old_path: new location for current rootfs 1114 int security_sb_pivotroot(const struct path *old_path, in security_sb_pivotroot() argument 1117 return call_int_hook(sb_pivotroot, old_path, new_path); in security_sb_pivotroot()
|