/linux/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/tools/lib/subcmd/ |
A D | exec-cmd.c | 143 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/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/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 mnt_userns = mnt_user_ns(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, mnt_userns, new_path.dentry->d_inode, in init_link() 195 done_path_create(&new_path, new_dentry); in init_link()
|
A D | namei.c | 4405 struct path old_path, new_path; in do_linkat() local 4438 if (old_path.mnt != new_path.mnt) in do_linkat() 4440 mnt_userns = mnt_user_ns(new_path.mnt); in do_linkat() 4450 done_path_create(&new_path, new_dentry); in do_linkat() 4671 struct path old_path, new_path; in do_renameat2() local 4701 if (old_path.mnt != new_path.mnt) in do_renameat2() 4765 &new_path, new_dentry, flags); in do_renameat2() 4772 rd.new_dir = new_path.dentry->d_inode; in do_renameat2() 4774 rd.new_mnt_userns = mnt_user_ns(new_path.mnt); in do_renameat2() 4783 unlock_rename(new_path.dentry, old_path.dentry); in do_renameat2() [all …]
|
A D | namespace.c | 2770 static int do_move_mount(struct path *old_path, struct path *new_path) in do_move_mount() argument 2780 mp = lock_mount(new_path); in do_move_mount() 2785 p = real_mount(new_path->mnt); in do_move_mount() 2810 if (d_is_dir(new_path->dentry) != in do_move_mount() 2831 err = attach_recursive_mnt(old, real_mount(new_path->mnt), mp, in do_move_mount()
|
/linux/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/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/security/apparmor/ |
A D | mount.c | 639 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()
|
A D | lsm.c | 370 struct path new_path = { .mnt = new_dir->mnt, in apparmor_path_rename() local 382 error = aa_path_perm(OP_RENAME_DEST, label, &new_path, in apparmor_path_rename() 584 const struct path *new_path) in apparmor_sb_pivotroot() argument 591 error = aa_pivotroot(label, old_path, new_path); in apparmor_sb_pivotroot()
|
/linux/tools/perf/util/ |
A D | probe-finder.c | 2012 0, p, new_path); in get_source_from_debuginfod() 2022 pr_debug("Got a source %s\n", *new_path); in get_source_from_debuginfod() 2029 char **new_path __maybe_unused) in get_source_from_debuginfod() 2041 const char *comp_dir, char **new_path) in find_source_path() argument 2056 *new_path = strdup(raw_path); in find_source_path() 2057 return *new_path ? 0 : -ENOMEM; in find_source_path() 2064 if (!*new_path) in find_source_path() 2070 if (access(*new_path, R_OK) == 0) in find_source_path() 2075 zfree(new_path); in find_source_path() 2086 zfree(new_path); in find_source_path() [all …]
|
A D | probe-finder.h | 65 const char *comp_dir, char **new_path);
|
/linux/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() 961 compat_ptr(args.new_path), preserve); in ocfs2_compat_ioctl()
|
A D | ocfs2_ioctl.h | 56 __u64 new_path; member
|
A D | refcounttree.c | 4424 struct path old_path, new_path; in ocfs2_reflink_ioctl() local 4436 new_dentry = user_path_create(AT_FDCWD, newname, &new_path, 0); in ocfs2_reflink_ioctl() 4444 if (old_path.mnt != new_path.mnt) { in ocfs2_reflink_ioctl() 4450 d_inode(new_path.dentry), in ocfs2_reflink_ioctl() 4453 done_path_create(&new_path, new_dentry); in ocfs2_reflink_ioctl()
|
/linux/security/apparmor/include/ |
A D | mount.h | 48 const struct path *new_path);
|
/linux/fs/proc/ |
A D | proc_sysctl.c | 1512 char *new_path, *pos; in __register_sysctl_paths() local 1514 pos = new_path = kmalloc(PATH_MAX, GFP_KERNEL); in __register_sysctl_paths() 1515 if (!new_path) in __register_sysctl_paths() 1520 pos = append_path(new_path, pos, component->procname); in __register_sysctl_paths() 1525 pos = append_path(new_path, pos, table->procname); in __register_sysctl_paths() 1531 header = __register_sysctl_table(set, new_path, table); in __register_sysctl_paths() 1544 if (register_leaf_sysctl_tables(new_path, pos, &subheader, in __register_sysctl_paths() 1550 kfree(new_path); in __register_sysctl_paths()
|
/linux/security/tomoyo/ |
A D | tomoyo.c | 418 static int tomoyo_sb_pivotroot(const struct path *old_path, const struct path *new_path) in tomoyo_sb_pivotroot() argument 420 return tomoyo_path2_perm(TOMOYO_TYPE_PIVOT_ROOT, new_path, old_path); in tomoyo_sb_pivotroot()
|
/linux/fs/exfat/ |
A D | namei.c | 1197 const unsigned char *new_path = new_dentry->d_name.name; in __exfat_rename() local 1206 if (new_path == NULL || strlen(new_path) == 0) in __exfat_rename() 1264 ret = exfat_resolve_path(new_parent_inode, new_path, &newdir, in __exfat_rename()
|
/linux/security/landlock/ |
A D | fs.c | 505 const struct path *const new_path) in hook_sb_pivotroot() argument
|
/linux/include/linux/ |
A D | security.h | 307 int security_sb_pivotroot(const struct path *old_path, const struct path *new_path); 693 const struct path *new_path) in security_sb_pivotroot() argument
|
/linux/fs/btrfs/ |
A D | send.c | 3772 struct fs_path *new_path; in update_ref_path() local 3778 new_path = fs_path_alloc(); in update_ref_path() 3779 if (!new_path) in update_ref_path() 3782 ret = get_cur_path(sctx, ref->dir, ref->dir_gen, new_path); in update_ref_path() 3784 fs_path_free(new_path); in update_ref_path() 3787 ret = fs_path_add(new_path, ref->name, ref->name_len); in update_ref_path() 3789 fs_path_free(new_path); in update_ref_path() 3794 set_ref_path(ref, new_path); in update_ref_path()
|