/linux-6.3-rc2/tools/testing/selftests/filesystems/fat/ |
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-6.3-rc2/drivers/acpi/acpica/ |
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-6.3-rc2/tools/lib/subcmd/ |
A D | exec-cmd.c | 146 char *new_path = NULL; in setup_path() local 149 add_path(&new_path, tmp); in setup_path() 150 add_path(&new_path, argv0_path); in setup_path() 154 astrcat(&new_path, old_path); in setup_path() 156 astrcat(&new_path, "/usr/local/bin:/usr/bin:/bin"); in setup_path() 158 setenv("PATH", new_path, 1); in setup_path() 160 free(new_path); in setup_path()
|
/linux-6.3-rc2/arch/um/os-Linux/ |
A 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.3-rc2/fs/ |
A 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()
|
A D | namei.c | 4551 struct path old_path, new_path; in do_linkat() local 4584 if (old_path.mnt != new_path.mnt) in do_linkat() 4586 idmap = mnt_idmap(new_path.mnt); in do_linkat() 4596 done_path_create(&new_path, new_dentry); in do_linkat() 4817 struct path old_path, new_path; in do_renameat2() local 4847 if (old_path.mnt != new_path.mnt) in do_renameat2() 4911 &new_path, new_dentry, flags); in do_renameat2() 4918 rd.new_dir = new_path.dentry->d_inode; in do_renameat2() 4920 rd.new_mnt_idmap = mnt_idmap(new_path.mnt); in do_renameat2() 4929 unlock_rename(new_path.dentry, old_path.dentry); in do_renameat2() [all …]
|
A D | namespace.c | 2824 static int do_move_mount(struct path *old_path, struct path *new_path) in do_move_mount() argument 2834 mp = lock_mount(new_path); in do_move_mount() 2839 p = real_mount(new_path->mnt); in do_move_mount() 2864 if (d_is_dir(new_path->dentry) != in do_move_mount() 2885 err = attach_recursive_mnt(old, real_mount(new_path->mnt), mp, in do_move_mount()
|
/linux-6.3-rc2/fs/vboxsf/ |
A D | dir.c | 401 struct shfl_string *old_path, *new_path; in vboxsf_dir_rename() local 411 new_path = vboxsf_path_from_dentry(sbi, new_dentry); in vboxsf_dir_rename() 412 if (IS_ERR(new_path)) { in vboxsf_dir_rename() 413 err = PTR_ERR(new_path); in vboxsf_dir_rename() 420 err = vboxsf_rename(sbi->root, old_path, new_path, shfl_flags); in vboxsf_dir_rename() 427 __putname(new_path); in vboxsf_dir_rename()
|
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()
|
A D | vfsmod.h | 140 int vboxsf_symlink(u32 root, struct shfl_string *new_path,
|
A D | shfl_hostintf.h | 883 struct vmmdev_hgcm_function_parameter new_path; member
|
/linux-6.3-rc2/tools/perf/ |
A D | builtin-help.c | 330 char *new_path; in setup_man_path() local 337 if (asprintf(&new_path, "%s:%s", system_path(PERF_MAN_PATH), old_path ?: "") > 0) { in setup_man_path() 338 setenv("MANPATH", new_path, 1); in setup_man_path() 339 free(new_path); in setup_man_path()
|
/linux-6.3-rc2/security/apparmor/ |
A D | mount.c | 628 const struct path *new_path, in build_pivotroot() argument 642 AA_BUG(!new_path); in build_pivotroot() 654 error = aa_path_name(new_path, path_flags(profile, new_path), in build_pivotroot() 682 const struct path *new_path) in aa_pivotroot() argument 691 AA_BUG(!new_path); in aa_pivotroot() 699 build_pivotroot(profile, new_path, new_buffer, in aa_pivotroot()
|
A D | lsm.c | 384 struct path new_path = { .mnt = new_dir->mnt, in apparmor_path_rename() local 399 error = aa_path_perm(OP_RENAME_SRC, label, &new_path, 0, in apparmor_path_rename() 415 error = aa_path_perm(OP_RENAME_DEST, label, &new_path, in apparmor_path_rename() 619 const struct path *new_path) in apparmor_sb_pivotroot() argument 626 error = aa_pivotroot(label, old_path, new_path); in apparmor_sb_pivotroot()
|
/linux-6.3-rc2/tools/perf/util/ |
A D | probe-finder.c | 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 2069 *new_path = strdup(raw_path); in find_source_path() 2070 return *new_path ? 0 : -ENOMEM; in find_source_path() 2077 if (!*new_path) in find_source_path() 2083 if (access(*new_path, R_OK) == 0) in find_source_path() 2088 zfree(new_path); in find_source_path() 2099 zfree(new_path); in find_source_path() [all …]
|
A D | probe-finder.h | 65 const char *comp_dir, char **new_path);
|
/linux-6.3-rc2/security/apparmor/include/ |
A D | mount.h | 48 const struct path *new_path);
|
/linux-6.3-rc2/fs/ocfs2/ |
A D | ioctl.c | 849 const char __user *new_path; in ocfs2_ioctl() local 894 new_path = (const char __user *)(unsigned long)args.new_path; in ocfs2_ioctl() 897 return ocfs2_reflink_ioctl(inode, old_path, new_path, preserve); in ocfs2_ioctl() 960 compat_ptr(args.new_path), preserve); in ocfs2_compat_ioctl()
|
A D | ocfs2_ioctl.h | 56 __u64 new_path; member
|
A D | refcounttree.c | 4396 struct path old_path, new_path; in ocfs2_reflink_ioctl() local 4408 new_dentry = user_path_create(AT_FDCWD, newname, &new_path, 0); in ocfs2_reflink_ioctl() 4416 if (old_path.mnt != new_path.mnt) { in ocfs2_reflink_ioctl() 4422 d_inode(new_path.dentry), in ocfs2_reflink_ioctl() 4425 done_path_create(&new_path, new_dentry); in ocfs2_reflink_ioctl()
|
/linux-6.3-rc2/fs/proc/ |
A D | proc_sysctl.c | 1571 char *new_path, *pos; in __register_sysctl_paths() local 1573 pos = new_path = kmalloc(PATH_MAX, GFP_KERNEL); in __register_sysctl_paths() 1574 if (!new_path) in __register_sysctl_paths() 1579 pos = append_path(new_path, pos, component->procname); in __register_sysctl_paths() 1584 pos = append_path(new_path, pos, table->procname); in __register_sysctl_paths() 1590 header = __register_sysctl_table(set, new_path, table); in __register_sysctl_paths() 1603 if (register_leaf_sysctl_tables(new_path, pos, &subheader, in __register_sysctl_paths() 1609 kfree(new_path); in __register_sysctl_paths()
|
/linux-6.3-rc2/security/tomoyo/ |
A 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.3-rc2/fs/exfat/ |
A D | namei.c | 1166 const unsigned char *new_path = new_dentry->d_name.name; in __exfat_rename() local 1175 if (new_path == NULL || strlen(new_path) == 0) in __exfat_rename() 1224 ret = exfat_resolve_path(new_parent_inode, new_path, &newdir, in __exfat_rename()
|
/linux-6.3-rc2/security/landlock/ |
A D | fs.c | 1093 const struct path *const new_path) in hook_sb_pivotroot() argument
|
/linux-6.3-rc2/include/linux/ |
A D | security.h | 311 int security_sb_pivotroot(const struct path *old_path, const struct path *new_path); 705 const struct path *new_path) in security_sb_pivotroot() argument
|