/Linux-v5.4/drivers/acpi/acpica/ |
D | nsnames.c | 418 char *new_path; in acpi_ns_normalize_pathname() local 424 new_path = new_path_buffer; in acpi_ns_normalize_pathname() 432 *new_path = *input_path; in acpi_ns_normalize_pathname() 433 new_path++; in acpi_ns_normalize_pathname() 438 *new_path = *input_path; in acpi_ns_normalize_pathname() 439 new_path++; in acpi_ns_normalize_pathname() 451 *new_path = *input_path; in acpi_ns_normalize_pathname() 452 new_path++; in acpi_ns_normalize_pathname() 461 *new_path = *input_path; in acpi_ns_normalize_pathname() 462 new_path++; in acpi_ns_normalize_pathname() [all …]
|
/Linux-v5.4/tools/lib/subcmd/ |
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-v5.4/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-v5.4/security/apparmor/ |
D | mount.c | 607 const struct path *new_path, in build_pivotroot() argument 619 AA_BUG(!new_path); in build_pivotroot() 631 error = aa_path_name(new_path, path_flags(profile, new_path), in build_pivotroot() 659 const struct path *new_path) in aa_pivotroot() argument 668 AA_BUG(!new_path); in aa_pivotroot() 672 build_pivotroot(profile, new_path, new_buffer, in aa_pivotroot()
|
D | lsm.c | 356 struct path new_path = { .mnt = new_dir->mnt, in apparmor_path_rename() local 367 error = aa_path_perm(OP_RENAME_DEST, label, &new_path, in apparmor_path_rename() 562 const struct path *new_path) in apparmor_sb_pivotroot() argument 569 error = aa_pivotroot(label, old_path, new_path); in apparmor_sb_pivotroot()
|
/Linux-v5.4/tools/perf/ |
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-v5.4/security/apparmor/include/ |
D | mount.h | 48 const struct path *new_path);
|
/Linux-v5.4/tools/perf/util/ |
D | probe-finder.c | 1842 char **new_path) in get_real_path() argument 1852 *new_path = strdup(raw_path); in get_real_path() 1853 return *new_path ? 0 : -ENOMEM; in get_real_path() 1859 *new_path = malloc((strlen(prefix) + strlen(raw_path) + 2)); in get_real_path() 1860 if (!*new_path) in get_real_path() 1864 sprintf(*new_path, "%s/%s", prefix, raw_path); in get_real_path() 1866 if (access(*new_path, R_OK) == 0) in get_real_path() 1871 zfree(new_path); in get_real_path() 1882 zfree(new_path); in get_real_path() 1888 zfree(new_path); in get_real_path()
|
D | probe-finder.h | 63 char **new_path);
|
/Linux-v5.4/fs/ocfs2/ |
D | ioctl.c | 846 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()
|
D | ocfs2_ioctl.h | 66 __u64 new_path; member
|
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-v5.4/fs/proc/ |
D | proc_sysctl.c | 1525 char *new_path, *pos; in __register_sysctl_paths() local 1527 pos = new_path = kmalloc(PATH_MAX, GFP_KERNEL); in __register_sysctl_paths() 1528 if (!new_path) in __register_sysctl_paths() 1533 pos = append_path(new_path, pos, component->procname); in __register_sysctl_paths() 1538 pos = append_path(new_path, pos, table->procname); in __register_sysctl_paths() 1544 header = __register_sysctl_table(set, new_path, table); in __register_sysctl_paths() 1557 if (register_leaf_sysctl_tables(new_path, pos, &subheader, in __register_sysctl_paths() 1563 kfree(new_path); in __register_sysctl_paths()
|
/Linux-v5.4/security/tomoyo/ |
D | tomoyo.c | 426 static int tomoyo_sb_pivotroot(const struct path *old_path, const struct path *new_path) in tomoyo_sb_pivotroot() argument 428 return tomoyo_path2_perm(TOMOYO_TYPE_PIVOT_ROOT, new_path, old_path); in tomoyo_sb_pivotroot()
|
/Linux-v5.4/fs/ |
D | namei.c | 4261 struct path old_path, new_path; in do_linkat() local 4286 new_dentry = user_path_create(newdfd, newname, &new_path, in do_linkat() 4293 if (old_path.mnt != new_path.mnt) in do_linkat() 4298 error = security_path_link(old_path.dentry, &new_path, new_dentry); in do_linkat() 4301 error = vfs_link(old_path.dentry, new_path.dentry->d_inode, new_dentry, &delegated_inode); in do_linkat() 4303 done_path_create(&new_path, new_dentry); in do_linkat() 4513 struct path old_path, new_path; in do_renameat2() local 4545 &new_path, &new_last, &new_type); in do_renameat2() 4552 if (old_path.mnt != new_path.mnt) in do_renameat2() 4569 trap = lock_rename(new_path.dentry, old_path.dentry); in do_renameat2() [all …]
|
D | namespace.c | 2598 static int do_move_mount(struct path *old_path, struct path *new_path) in do_move_mount() argument 2608 mp = lock_mount(new_path); in do_move_mount() 2613 p = real_mount(new_path->mnt); in do_move_mount() 2638 if (d_is_dir(new_path->dentry) != in do_move_mount() 2659 err = attach_recursive_mnt(old, real_mount(new_path->mnt), mp, in do_move_mount()
|
/Linux-v5.4/include/linux/ |
D | security.h | 293 int security_sb_pivotroot(const struct path *old_path, const struct path *new_path); 647 const struct path *new_path) in security_sb_pivotroot() argument
|
D | lsm_hooks.h | 1506 int (*sb_pivotroot)(const struct path *old_path, const struct path *new_path);
|
/Linux-v5.4/fs/btrfs/ |
D | send.c | 3755 struct fs_path *new_path; in update_ref_path() local 3761 new_path = fs_path_alloc(); in update_ref_path() 3762 if (!new_path) in update_ref_path() 3765 ret = get_cur_path(sctx, ref->dir, ref->dir_gen, new_path); in update_ref_path() 3767 fs_path_free(new_path); in update_ref_path() 3770 ret = fs_path_add(new_path, ref->name, ref->name_len); in update_ref_path() 3772 fs_path_free(new_path); in update_ref_path() 3777 set_ref_path(ref, new_path); in update_ref_path()
|
/Linux-v5.4/drivers/staging/exfat/ |
D | exfat_super.c | 1227 u8 *new_path = (u8 *)new_dentry->d_name.name; in ffsMoveFile() local 1238 if (!new_path || (*new_path == '\0')) in ffsMoveFile() 1304 ret = resolve_path(new_parent_inode, new_path, &newdir, &uni_name); in ffsMoveFile()
|
/Linux-v5.4/security/ |
D | security.c | 868 int security_sb_pivotroot(const struct path *old_path, const struct path *new_path) in security_sb_pivotroot() argument 870 return call_int_hook(sb_pivotroot, 0, old_path, new_path); in security_sb_pivotroot()
|
/Linux-v5.4/drivers/scsi/ |
D | ipr.c | 1343 int new_path = 0; in ipr_update_res_entry() local 1365 new_path = 1; in ipr_update_res_entry() 1368 if (res->sdev && new_path) in ipr_update_res_entry()
|