| /linux/tools/testing/selftests/filesystems/fat/ |
| H A D | run_fat_tests.sh | 45 local new_path="${MNT_PATH}/new_file" 48 echo new | sudo tee "${new_path}" >/dev/null 2>&1 49 sudo "${rename_exchange}" "${old_path}" "${new_path}" >/dev/null 2>&1 52 grep old "${new_path}" >/dev/null 2>&1 60 local new_path="${dir_path}/new_file" 64 echo new | sudo tee "${new_path}" >/dev/null 2>&1 65 sudo "${rename_exchange}" "${old_path}" "${new_path}" >/dev/null 2>&1 68 grep old "${new_path}" >/dev/null 2>&1
|
| /linux/drivers/acpi/acpica/ |
| H A D | nsnames.c | 414 char *new_path; in acpi_ns_normalize_pathname() local 420 new_path = new_path_buffer; in acpi_ns_normalize_pathname() 428 *new_path = *input_path; in acpi_ns_normalize_pathname() 429 new_path++; in acpi_ns_normalize_pathname() 434 *new_path = *input_path; in acpi_ns_normalize_pathname() 435 new_path++; in acpi_ns_normalize_pathname() 447 *new_path = *input_path; in acpi_ns_normalize_pathname() 448 new_path++; in acpi_ns_normalize_pathname() 457 *new_path = *input_path; in acpi_ns_normalize_pathname() 458 new_path++; in acpi_ns_normalize_pathname() [all …]
|
| /linux/tools/lib/subcmd/ |
| H A D | exec-cmd.c | 151 char *new_path = NULL; in setup_path() local 154 add_path(&new_path, tmp); in setup_path() 155 add_path(&new_path, argv0_path); in setup_path() 159 astrcat(&new_path, old_path); in setup_path() 161 astrcat(&new_path, "/usr/local/bin:/usr/bin:/bin"); in setup_path() 163 setenv("PATH", new_path, 1); in setup_path() 165 free(new_path); in setup_path()
|
| /linux/arch/um/os-Linux/ |
| H A D | main.c | 74 char *new_path = NULL; in setup_env_path() local 91 new_path = malloc(path_len); in setup_env_path() 92 if (!new_path) { in setup_env_path() 96 snprintf(new_path, path_len, "PATH=%s" UML_LIB_PATH, old_path); in setup_env_path() 97 if (putenv(new_path)) { in setup_env_path() 99 free(new_path); in setup_env_path()
|
| /linux/tools/perf/util/ |
| H A D | debuginfo.c | 188 const char *sbuild_id, char **new_path) in get_source_from_debuginfod() 198 0, p, new_path); in get_source_from_debuginfod() 208 pr_debug("Got a source %s\n", *new_path); in get_source_from_debuginfod() 189 get_source_from_debuginfod(const char * raw_path,const char * sbuild_id,char ** new_path) get_source_from_debuginfod() argument
|
| H A D | probe-finder.c | 1904 const char *comp_dir, char **new_path) in find_source_path() argument 1913 if (!get_source_from_debuginfod(prefixed_raw_path, sbuild_id, new_path)) in find_source_path() 1923 *new_path = strdup(raw_path); in find_source_path() 1924 return *new_path ? 0 : -ENOMEM; in find_source_path() 1930 *new_path = malloc((strlen(prefix) + strlen(raw_path) + 2)); in find_source_path() 1931 if (!*new_path) in find_source_path() 1935 sprintf(*new_path, "%s/%s", prefix, raw_path); in find_source_path() 1937 if (access(*new_path, R_OK) == 0) in find_source_path() 1942 zfree(new_path); in find_source_path() 1953 zfree(new_path); in find_source_path() [all...] |
| /linux/fs/vboxsf/ |
| H A D | dir.c | 396 struct shfl_string *old_path, *new_path; in vboxsf_dir_rename() local 406 new_path = vboxsf_path_from_dentry(sbi, new_dentry); in vboxsf_dir_rename() 407 if (IS_ERR(new_path)) { in vboxsf_dir_rename() 408 err = PTR_ERR(new_path); in vboxsf_dir_rename() 415 err = vboxsf_rename(sbi->root, old_path, new_path, shfl_flags); in vboxsf_dir_rename() 422 __putname(new_path); in vboxsf_dir_rename()
|
| H A D | vboxsf_wrappers.c | 340 int vboxsf_symlink(u32 root, struct shfl_string *new_path, in vboxsf_symlink() argument 348 parms.new_path.type = VMMDEV_HGCM_PARM_TYPE_LINADDR_KERNEL_IN; in vboxsf_symlink() 349 parms.new_path.u.pointer.size = shfl_string_buf_size(new_path); in vboxsf_symlink() 350 parms.new_path.u.pointer.u.linear_addr = (uintptr_t)new_path; in vboxsf_symlink()
|
| H A D | vfsmod.h | 140 int vboxsf_symlink(u32 root, struct shfl_string *new_path,
|
| H A D | shfl_hostintf.h | 883 struct vmmdev_hgcm_function_parameter new_path; member
|
| /linux/security/apparmor/ |
| H A D | mount.c | 663 const struct path *new_path, in build_pivotroot() argument 676 AA_BUG(!new_path); in build_pivotroot() 688 error = aa_path_name(new_path, path_flags(profile, new_path), in build_pivotroot() 718 const struct path *new_path) in aa_pivotroot() argument 727 AA_BUG(!new_path); in aa_pivotroot() 735 build_pivotroot(subj_cred, profile, new_path, in aa_pivotroot()
|
| H A D | lsm.c | 401 struct path new_path = { .mnt = new_dir->mnt, in apparmor_path_rename() local 417 label, &new_path, 0, in apparmor_path_rename() 436 label, &new_path, in apparmor_path_rename() 769 const struct path *new_path) in apparmor_sb_pivotroot() argument 776 error = aa_pivotroot(current_cred(), label, old_path, new_path); in apparmor_sb_pivotroot()
|
| /linux/tools/perf/ |
| H A D | builtin-help.c | 373 char *new_path; in setup_man_path() local 380 if (asprintf(&new_path, "%s:%s", system_path(PERF_MAN_PATH), old_path ?: "") > 0) { in setup_man_path() 381 setenv("MANPATH", new_path, 1); in setup_man_path() 382 free(new_path); in setup_man_path()
|
| /linux/security/apparmor/include/ |
| H A D | mount.h | 58 const struct path *new_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/smb/server/ |
| H A D | vfs.c | 666 struct path new_path; in ksmbd_vfs_rename() local 681 &new_path, &new_last, &new_type, in ksmbd_vfs_rename() 686 if (old_path->mnt != new_path.mnt) { in ksmbd_vfs_rename() 697 rd.new_parent = new_path.dentry; in ksmbd_vfs_rename() 729 path_put(&new_path); in ksmbd_vfs_rename()
|
| /linux/fs/ |
| H A D | namei.c | 5803 struct path old_path, new_path; in filename_linkat() local 5826 new_dentry = filename_create(newdfd, new, &new_path, in filename_linkat() 5833 if (old_path.mnt != new_path.mnt) in filename_linkat() 5835 idmap = mnt_idmap(new_path.mnt); in filename_linkat() 5839 error = security_path_link(old_path.dentry, &new_path, new_dentry); in filename_linkat() 5842 error = vfs_link(old_path.dentry, idmap, new_path.dentry->d_inode, in filename_linkat() 5845 end_creating_path(&new_path, new_dentry); in filename_linkat() 6097 struct path old_path, new_path; in filename_renameat2() local 6118 error = filename_parentat(newdfd, to, lookup_flags, &new_path, &new_last, in filename_renameat2() 6124 if (old_path.mnt != new_path.mnt) in filename_renameat2() [all …]
|
| H A D | namespace.c | 3626 const struct path *new_path, in do_move_mount() argument 3636 if (d_is_dir(new_path->dentry) != d_is_dir(old_path->dentry)) in do_move_mount() 3639 LOCK_MOUNT_MAYBE_BENEATH(mp, new_path, beneath); in do_move_mount() 3676 struct mount *over = real_mount(new_path->mnt); in do_move_mount() 4431 struct path new_path __free(path_put) = {}; in SYSCALL_DEFINE3() 4504 new_path.dentry = dget(fc->root); in SYSCALL_DEFINE3() 4505 new_path.mnt = new_mnt; in SYSCALL_DEFINE3() 4516 open_new_namespace(&new_path, MOUNT_COPY_NEW)); in SYSCALL_DEFINE3() 4521 mnt = real_mount(new_path.mnt); in SYSCALL_DEFINE3() 4525 mntget(new_path.mnt); in SYSCALL_DEFINE3() [all …]
|
| /linux/security/landlock/ |
| H A D | fs.c | 1491 const struct path *const new_path) in hook_sb_pivotroot() 1501 log_fs_change_topology_path(subject, handle_layer, new_path); in hook_sb_pivotroot() 1492 hook_sb_pivotroot(const struct path * const old_path,const struct path * const new_path) hook_sb_pivotroot() argument
|
| /linux/include/linux/ |
| H A D | security.h | 379 int security_sb_pivotroot(const struct path *old_path, const struct path *new_path); 830 const struct path *new_path) in security_sb_pivotroot() argument
|
| /linux/security/ |
| H A D | security.c | 1115 const struct path *new_path) in security_sb_pivotroot() argument 1117 return call_int_hook(sb_pivotroot, old_path, new_path); in security_sb_pivotroot()
|
| /linux/drivers/scsi/ |
| H A D | ipr.c | 1259 int new_path = 0; in ipr_update_res_entry() local 1280 new_path = 1; in ipr_update_res_entry() 1283 if (res->sdev && new_path) in ipr_update_res_entry()
|
| /linux/fs/btrfs/ |
| H A D | volumes.c | 743 static bool is_same_device(struct btrfs_device *device, const char *new_path) in is_same_device() argument 767 ret = kern_path(new_path, LOOKUP_FOLLOW, &new); in is_same_device()
|