Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/acpi/acpica/
Dnsnames.c418 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/
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.4/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.4/security/apparmor/
Dmount.c607 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()
Dlsm.c356 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/
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.4/security/apparmor/include/
Dmount.h48 const struct path *new_path);
/Linux-v5.4/tools/perf/util/
Dprobe-finder.c1842 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()
Dprobe-finder.h63 char **new_path);
/Linux-v5.4/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.c4424 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/
Dproc_sysctl.c1525 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/
Dtomoyo.c426 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/
Dnamei.c4261 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 …]
Dnamespace.c2598 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/
Dsecurity.h293 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
Dlsm_hooks.h1506 int (*sb_pivotroot)(const struct path *old_path, const struct path *new_path);
/Linux-v5.4/fs/btrfs/
Dsend.c3755 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/
Dexfat_super.c1227 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/
Dsecurity.c868 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/
Dipr.c1343 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()