/linux-6.6.21/tools/testing/selftests/filesystems/fat/ |
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-6.6.21/drivers/acpi/acpica/ |
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-6.6.21/tools/lib/subcmd/ |
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-6.6.21/arch/um/os-Linux/ |
D | main.c | 76 char *new_path = NULL; in setup_env_path() local 93 new_path = malloc(path_len); in setup_env_path() 94 if (!new_path) { in setup_env_path() 98 snprintf(new_path, path_len, "PATH=%s" UML_LIB_PATH, old_path); in setup_env_path() 99 if (putenv(new_path)) { in setup_env_path() 101 free(new_path); in setup_env_path()
|
/linux-6.6.21/fs/ |
D | init.c | 169 struct path old_path, new_path; in init_link() local 177 new_dentry = kern_path_create(AT_FDCWD, newname, &new_path, 0); in init_link() 183 if (old_path.mnt != new_path.mnt) in init_link() 185 idmap = mnt_idmap(new_path.mnt); in init_link() 189 error = security_path_link(old_path.dentry, &new_path, new_dentry); in init_link() 192 error = vfs_link(old_path.dentry, idmap, new_path.dentry->d_inode, in init_link() 195 done_path_create(&new_path, new_dentry); in init_link()
|
D | namei.c | 4628 struct path old_path, new_path; in do_linkat() local 4654 new_dentry = filename_create(newdfd, new, &new_path, in do_linkat() 4661 if (old_path.mnt != new_path.mnt) in do_linkat() 4663 idmap = mnt_idmap(new_path.mnt); in do_linkat() 4667 error = security_path_link(old_path.dentry, &new_path, new_dentry); in do_linkat() 4670 error = vfs_link(old_path.dentry, idmap, new_path.dentry->d_inode, in do_linkat() 4673 done_path_create(&new_path, new_dentry); in do_linkat() 4919 struct path old_path, new_path; in do_renameat2() local 4943 error = filename_parentat(newdfd, to, lookup_flags, &new_path, &new_last, in do_renameat2() 4949 if (old_path.mnt != new_path.mnt) in do_renameat2() [all …]
|
D | namespace.c | 3109 static int do_move_mount(struct path *old_path, struct path *new_path, in do_move_mount() argument 3121 mp = do_lock_mount(new_path, beneath); in do_move_mount() 3126 p = real_mount(new_path->mnt); in do_move_mount() 3153 if (d_is_dir(new_path->dentry) != in do_move_mount() 3163 err = can_move_mount_beneath(old_path, new_path, mp); in do_move_mount() 3185 err = attach_recursive_mnt(old, real_mount(new_path->mnt), mp, flags); in do_move_mount()
|
/linux-6.6.21/fs/vboxsf/ |
D | dir.c | 402 struct shfl_string *old_path, *new_path; in vboxsf_dir_rename() local 412 new_path = vboxsf_path_from_dentry(sbi, new_dentry); in vboxsf_dir_rename() 413 if (IS_ERR(new_path)) { in vboxsf_dir_rename() 414 err = PTR_ERR(new_path); in vboxsf_dir_rename() 421 err = vboxsf_rename(sbi->root, old_path, new_path, shfl_flags); in vboxsf_dir_rename() 428 __putname(new_path); in vboxsf_dir_rename()
|
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()
|
D | vfsmod.h | 140 int vboxsf_symlink(u32 root, struct shfl_string *new_path,
|
D | shfl_hostintf.h | 883 struct vmmdev_hgcm_function_parameter new_path; member
|
/linux-6.6.21/security/apparmor/ |
D | mount.c | 664 const struct path *new_path, in build_pivotroot() argument 678 AA_BUG(!new_path); in build_pivotroot() 690 error = aa_path_name(new_path, path_flags(profile, new_path), in build_pivotroot() 720 const struct path *new_path) in aa_pivotroot() argument 729 AA_BUG(!new_path); in aa_pivotroot() 737 build_pivotroot(subj_cred, profile, new_path, in aa_pivotroot()
|
D | lsm.c | 391 struct path new_path = { .mnt = new_dir->mnt, in apparmor_path_rename() local 407 label, &new_path, 0, in apparmor_path_rename() 426 label, &new_path, in apparmor_path_rename() 650 const struct path *new_path) in apparmor_sb_pivotroot() argument 657 error = aa_pivotroot(current_cred(), label, old_path, new_path); in apparmor_sb_pivotroot()
|
/linux-6.6.21/tools/perf/ |
D | builtin-help.c | 332 char *new_path; in setup_man_path() local 339 if (asprintf(&new_path, "%s:%s", system_path(PERF_MAN_PATH), old_path ?: "") > 0) { in setup_man_path() 340 setenv("MANPATH", new_path, 1); in setup_man_path() 341 free(new_path); in setup_man_path()
|
/linux-6.6.21/tools/perf/util/ |
D | probe-finder.c | 2015 const char *sbuild_id, char **new_path) in get_source_from_debuginfod() argument 2025 0, p, new_path); in get_source_from_debuginfod() 2035 pr_debug("Got a source %s\n", *new_path); in get_source_from_debuginfod() 2042 char **new_path __maybe_unused) in get_source_from_debuginfod() 2054 const char *comp_dir, char **new_path) in find_source_path() argument 2059 if (!get_source_from_debuginfod(raw_path, sbuild_id, new_path)) in find_source_path() 2069 *new_path = strdup(raw_path); in find_source_path() 2070 return *new_path ? 0 : -ENOMEM; in find_source_path() 2076 *new_path = malloc((strlen(prefix) + strlen(raw_path) + 2)); in find_source_path() 2077 if (!*new_path) in find_source_path() [all …]
|
D | probe-finder.h | 65 const char *comp_dir, char **new_path);
|
/linux-6.6.21/security/apparmor/include/ |
D | mount.h | 58 const struct path *new_path);
|
/linux-6.6.21/fs/ocfs2/ |
D | ioctl.c | 898 const char __user *new_path; in ocfs2_ioctl() local 904 new_path = (const char __user *)(unsigned long)args.new_path; in ocfs2_ioctl() 907 return ocfs2_reflink_ioctl(inode, old_path, new_path, preserve); in ocfs2_ioctl() 975 compat_ptr(args.new_path), preserve); in ocfs2_compat_ioctl()
|
D | ocfs2_ioctl.h | 56 __u64 new_path; member
|
D | refcounttree.c | 4397 struct path old_path, new_path; in ocfs2_reflink_ioctl() local 4409 new_dentry = user_path_create(AT_FDCWD, newname, &new_path, 0); in ocfs2_reflink_ioctl() 4417 if (old_path.mnt != new_path.mnt) { in ocfs2_reflink_ioctl() 4423 d_inode(new_path.dentry), in ocfs2_reflink_ioctl() 4426 done_path_create(&new_path, new_dentry); in ocfs2_reflink_ioctl()
|
/linux-6.6.21/fs/smb/server/ |
D | vfs.c | 683 struct path new_path; in ksmbd_vfs_rename() local 703 &new_path, &new_last, &new_type, in ksmbd_vfs_rename() 708 if (old_path->mnt != new_path.mnt) { in ksmbd_vfs_rename() 717 trap = lock_rename_child(old_child, new_path.dentry); in ksmbd_vfs_rename() 736 new_dentry = lookup_one_qstr_excl(&new_last, new_path.dentry, in ksmbd_vfs_rename() 766 rd.new_mnt_idmap = mnt_idmap(new_path.mnt), in ksmbd_vfs_rename() 767 rd.new_dir = new_path.dentry->d_inode, in ksmbd_vfs_rename() 779 unlock_rename(old_parent, new_path.dentry); in ksmbd_vfs_rename() 782 path_put(&new_path); in ksmbd_vfs_rename()
|
/linux-6.6.21/security/tomoyo/ |
D | tomoyo.c | 439 static int tomoyo_sb_pivotroot(const struct path *old_path, const struct path *new_path) in tomoyo_sb_pivotroot() argument 441 return tomoyo_path2_perm(TOMOYO_TYPE_PIVOT_ROOT, new_path, old_path); in tomoyo_sb_pivotroot()
|
/linux-6.6.21/fs/exfat/ |
D | namei.c | 1178 const unsigned char *new_path = new_dentry->d_name.name; in __exfat_rename() local 1187 if (new_path == NULL || strlen(new_path) == 0) in __exfat_rename() 1236 ret = exfat_resolve_path(new_parent_inode, new_path, &newdir, in __exfat_rename()
|
/linux-6.6.21/security/landlock/ |
D | fs.c | 1093 const struct path *const new_path) in hook_sb_pivotroot() argument
|
/linux-6.6.21/include/linux/ |
D | security.h | 313 int security_sb_pivotroot(const struct path *old_path, const struct path *new_path); 711 const struct path *new_path) in security_sb_pivotroot() argument
|