Home
last modified time | relevance | path

Searched refs:new_path (Results 1 – 25 of 27) sorted by relevance

12

/Linux-v5.10/drivers/acpi/acpica/
Dnsnames.c414 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-v5.10/tools/lib/subcmd/
Dexec-cmd.c143 char *new_path = NULL; in setup_path() local
146 add_path(&new_path, tmp); in setup_path()
147 add_path(&new_path, argv0_path); in setup_path()
151 astrcat(&new_path, old_path); in setup_path()
153 astrcat(&new_path, "/usr/local/bin:/usr/bin:/bin"); in setup_path()
155 setenv("PATH", new_path, 1); in setup_path()
157 free(new_path); in setup_path()
/Linux-v5.10/arch/um/os-Linux/
Dmain.c76 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-v5.10/fs/
Dinit.c169 struct path old_path, new_path; in init_link() local
176 new_dentry = kern_path_create(AT_FDCWD, newname, &new_path, 0); in init_link()
182 if (old_path.mnt != new_path.mnt) in init_link()
187 error = security_path_link(old_path.dentry, &new_path, new_dentry); in init_link()
190 error = vfs_link(old_path.dentry, new_path.dentry->d_inode, new_dentry, in init_link()
193 done_path_create(&new_path, new_dentry); in init_link()
Dnamei.c4102 struct path old_path, new_path; in do_linkat() local
4127 new_dentry = user_path_create(newdfd, newname, &new_path, in do_linkat()
4134 if (old_path.mnt != new_path.mnt) in do_linkat()
4139 error = security_path_link(old_path.dentry, &new_path, new_dentry); in do_linkat()
4142 error = vfs_link(old_path.dentry, new_path.dentry->d_inode, new_dentry, &delegated_inode); in do_linkat()
4144 done_path_create(&new_path, new_dentry); in do_linkat()
4354 struct path old_path, new_path; in do_renameat2() local
4383 &new_path, &new_last, &new_type); in do_renameat2()
4390 if (old_path.mnt != new_path.mnt) in do_renameat2()
4407 trap = lock_rename(new_path.dentry, old_path.dentry); in do_renameat2()
[all …]
Dnamespace.c2657 static int do_move_mount(struct path *old_path, struct path *new_path) in do_move_mount() argument
2667 mp = lock_mount(new_path); in do_move_mount()
2672 p = real_mount(new_path->mnt); in do_move_mount()
2697 if (d_is_dir(new_path->dentry) != in do_move_mount()
2718 err = attach_recursive_mnt(old, real_mount(new_path->mnt), mp, in do_move_mount()
/Linux-v5.10/fs/vboxsf/
Ddir.c345 struct shfl_string *old_path, *new_path; in vboxsf_dir_rename() local
355 new_path = vboxsf_path_from_dentry(sbi, new_dentry); in vboxsf_dir_rename()
356 if (IS_ERR(new_path)) { in vboxsf_dir_rename()
357 err = PTR_ERR(new_path); in vboxsf_dir_rename()
364 err = vboxsf_rename(sbi->root, old_path, new_path, shfl_flags); in vboxsf_dir_rename()
371 __putname(new_path); in vboxsf_dir_rename()
Dvboxsf_wrappers.c340 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()
Dvfsmod.h131 int vboxsf_symlink(u32 root, struct shfl_string *new_path,
Dshfl_hostintf.h883 struct vmmdev_hgcm_function_parameter new_path; member
/Linux-v5.10/tools/perf/
Dbuiltin-help.c330 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-v5.10/security/apparmor/
Dmount.c639 const struct path *new_path, in build_pivotroot() argument
651 AA_BUG(!new_path); in build_pivotroot()
663 error = aa_path_name(new_path, path_flags(profile, new_path), in build_pivotroot()
691 const struct path *new_path) in aa_pivotroot() argument
700 AA_BUG(!new_path); in aa_pivotroot()
708 build_pivotroot(profile, new_path, new_buffer, in aa_pivotroot()
Dlsm.c366 struct path new_path = { .mnt = new_dir->mnt, in apparmor_path_rename() local
377 error = aa_path_perm(OP_RENAME_DEST, label, &new_path, in apparmor_path_rename()
575 const struct path *new_path) in apparmor_sb_pivotroot() argument
582 error = aa_pivotroot(label, old_path, new_path); in apparmor_sb_pivotroot()
/Linux-v5.10/tools/perf/util/
Dprobe-finder.c1991 const char *sbuild_id, char **new_path) in get_source_from_debuginfod() argument
2001 0, p, new_path); in get_source_from_debuginfod()
2011 pr_debug("Got a source %s\n", *new_path); in get_source_from_debuginfod()
2018 char **new_path __maybe_unused) in get_source_from_debuginfod()
2030 const char *comp_dir, char **new_path) in find_source_path() argument
2035 if (!get_source_from_debuginfod(raw_path, sbuild_id, new_path)) in find_source_path()
2045 *new_path = strdup(raw_path); in find_source_path()
2046 return *new_path ? 0 : -ENOMEM; in find_source_path()
2052 *new_path = malloc((strlen(prefix) + strlen(raw_path) + 2)); in find_source_path()
2053 if (!*new_path) in find_source_path()
[all …]
Dprobe-finder.h65 const char *comp_dir, char **new_path);
/Linux-v5.10/security/apparmor/include/
Dmount.h48 const struct path *new_path);
/Linux-v5.10/fs/ocfs2/
Dioctl.c846 const char __user *new_path; in ocfs2_ioctl() local
909 new_path = (const char __user *)(unsigned long)args.new_path; in ocfs2_ioctl()
912 return ocfs2_reflink_ioctl(inode, old_path, new_path, preserve); in ocfs2_ioctl()
982 compat_ptr(args.new_path), preserve); in ocfs2_compat_ioctl()
Docfs2_ioctl.h66 __u64 new_path; member
Drefcounttree.c4426 struct path old_path, new_path; in ocfs2_reflink_ioctl() local
4438 new_dentry = user_path_create(AT_FDCWD, newname, &new_path, 0); in ocfs2_reflink_ioctl()
4446 if (old_path.mnt != new_path.mnt) { in ocfs2_reflink_ioctl()
4452 d_inode(new_path.dentry), in ocfs2_reflink_ioctl()
4455 done_path_create(&new_path, new_dentry); in ocfs2_reflink_ioctl()
/Linux-v5.10/fs/proc/
Dproc_sysctl.c1508 char *new_path, *pos; in __register_sysctl_paths() local
1510 pos = new_path = kmalloc(PATH_MAX, GFP_KERNEL); in __register_sysctl_paths()
1511 if (!new_path) in __register_sysctl_paths()
1516 pos = append_path(new_path, pos, component->procname); in __register_sysctl_paths()
1521 pos = append_path(new_path, pos, table->procname); in __register_sysctl_paths()
1527 header = __register_sysctl_table(set, new_path, table); in __register_sysctl_paths()
1540 if (register_leaf_sysctl_tables(new_path, pos, &subheader, in __register_sysctl_paths()
1546 kfree(new_path); in __register_sysctl_paths()
/Linux-v5.10/security/tomoyo/
Dtomoyo.c420 static int tomoyo_sb_pivotroot(const struct path *old_path, const struct path *new_path) in tomoyo_sb_pivotroot() argument
422 return tomoyo_path2_perm(TOMOYO_TYPE_PIVOT_ROOT, new_path, old_path); in tomoyo_sb_pivotroot()
/Linux-v5.10/fs/exfat/
Dnamei.c1189 const unsigned char *new_path = new_dentry->d_name.name; in __exfat_rename() local
1198 if (new_path == NULL || strlen(new_path) == 0) in __exfat_rename()
1256 ret = exfat_resolve_path(new_parent_inode, new_path, &newdir, in __exfat_rename()
/Linux-v5.10/include/linux/
Dsecurity.h300 int security_sb_pivotroot(const struct path *old_path, const struct path *new_path);
666 const struct path *new_path) in security_sb_pivotroot() argument
Dlsm_hook_defs.h73 const struct path *new_path)
/Linux-v5.10/fs/btrfs/
Dsend.c3781 struct fs_path *new_path; in update_ref_path() local
3787 new_path = fs_path_alloc(); in update_ref_path()
3788 if (!new_path) in update_ref_path()
3791 ret = get_cur_path(sctx, ref->dir, ref->dir_gen, new_path); in update_ref_path()
3793 fs_path_free(new_path); in update_ref_path()
3796 ret = fs_path_add(new_path, ref->name, ref->name_len); in update_ref_path()
3798 fs_path_free(new_path); in update_ref_path()
3803 set_ref_path(ref, new_path); in update_ref_path()

12