/linux-6.3-rc2/tools/testing/selftests/filesystems/fat/ |
A D | run_fat_tests.sh | 44 local old_path="${MNT_PATH}/old_file" 47 echo old | sudo tee "${old_path}" >/dev/null 2>&1 49 sudo "${rename_exchange}" "${old_path}" "${new_path}" >/dev/null 2>&1 51 grep new "${old_path}" >/dev/null 2>&1 59 local old_path="${MNT_PATH}/old_file" 63 echo old | sudo tee "${old_path}" >/dev/null 2>&1 65 sudo "${rename_exchange}" "${old_path}" "${new_path}" >/dev/null 2>&1 67 grep new "${old_path}" >/dev/null 2>&1
|
/linux-6.3-rc2/arch/um/os-Linux/ |
A D | main.c | 77 char *old_path = NULL; in setup_env_path() local 80 old_path = getenv("PATH"); in setup_env_path() 85 if (!old_path || (path_len = strlen(old_path)) == 0) { in setup_env_path() 98 snprintf(new_path, path_len, "PATH=%s" UML_LIB_PATH, old_path); in setup_env_path()
|
/linux-6.3-rc2/security/apparmor/ |
A D | mount.c | 414 struct path old_path; in aa_bind_mount() local 436 match_mnt(profile, path, buffer, &old_path, old_buffer, in aa_bind_mount() 441 path_put(&old_path); in aa_bind_mount() 476 struct path old_path; in aa_move_mount() local 485 error = kern_path(orig_name, LOOKUP_FOLLOW, &old_path); in aa_move_mount() 500 path_put(&old_path); in aa_move_mount() 630 const struct path *old_path, in build_pivotroot() argument 643 AA_BUG(!old_path); in build_pivotroot() 649 error = aa_path_name(old_path, path_flags(profile, old_path), in build_pivotroot() 690 AA_BUG(!old_path); in aa_pivotroot() [all …]
|
A D | lsm.c | 382 struct path old_path = { .mnt = old_dir->mnt, in apparmor_path_rename() local 404 error = aa_path_perm(OP_RENAME_DEST, label, &old_path, in apparmor_path_rename() 410 error = aa_path_perm(OP_RENAME_SRC, label, &old_path, 0, in apparmor_path_rename() 618 static int apparmor_sb_pivotroot(const struct path *old_path, in apparmor_sb_pivotroot() argument 626 error = aa_pivotroot(label, old_path, new_path); in apparmor_sb_pivotroot()
|
/linux-6.3-rc2/fs/ |
A D | init.c | 169 struct path old_path, new_path; in init_link() local 173 error = kern_path(oldname, 0, &old_path); in init_link() 183 if (old_path.mnt != new_path.mnt) in init_link() 186 error = may_linkat(idmap, &old_path); 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() 197 path_put(&old_path); in init_link()
|
A D | namespace.c | 2410 mnt = clone_mnt(old, old_path->dentry, 0); in __do_loopback() 2424 struct path old_path; in do_loopback() local 2435 if (mnt_ns_loop(old_path.dentry)) in do_loopback() 2448 mnt = __do_loopback(&old_path, recurse); in do_loopback() 2463 path_put(&old_path); in do_loopback() 2838 old = real_mount(old_path->mnt); in do_move_mount() 2861 if (old_path->dentry != old_path->mnt->mnt_root) in do_move_mount() 2865 d_is_dir(old_path->dentry)) in do_move_mount() 2908 struct path old_path; in do_move_mount_old() local 2918 err = do_move_mount(&old_path, path); in do_move_mount_old() [all …]
|
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() 4587 error = may_linkat(idmap, &old_path); in do_linkat() 4600 path_put(&old_path); in do_linkat() 4605 path_put(&old_path); in do_linkat() 4610 path_put(&old_path); 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() 4859 error = mnt_want_write(old_path.mnt); in do_renameat2() 4935 mnt_drop_write(old_path.mnt); in do_renameat2() [all …]
|
/linux-6.3-rc2/tools/testing/kunit/ |
A D | kunit_kernel.py | 293 old_path = get_old_kunitconfig_path(build_dir) 294 if os.path.exists(old_path): 295 os.remove(old_path) # write_to_file appends to the file 296 self._kconfig.write_to_file(old_path) 300 old_path = get_old_kunitconfig_path(build_dir) 301 if not os.path.exists(old_path): 304 old_kconfig = kunit_config.parse_file(old_path)
|
/linux-6.3-rc2/tools/lib/subcmd/ |
A D | exec-cmd.c | 145 const char *old_path = getenv("PATH"); in setup_path() local 153 if (old_path) in setup_path() 154 astrcat(&new_path, old_path); in setup_path()
|
/linux-6.3-rc2/fs/vboxsf/ |
A D | dir.c | 401 struct shfl_string *old_path, *new_path; in vboxsf_dir_rename() local 407 old_path = vboxsf_path_from_dentry(sbi, old_dentry); in vboxsf_dir_rename() 408 if (IS_ERR(old_path)) in vboxsf_dir_rename() 409 return PTR_ERR(old_path); in vboxsf_dir_rename() 420 err = vboxsf_rename(sbi->root, old_path, new_path, shfl_flags); in vboxsf_dir_rename() 429 __putname(old_path); in vboxsf_dir_rename()
|
A D | vboxsf_wrappers.c | 341 struct shfl_string *old_path, struct shfl_fsobjinfo *buf) in vboxsf_symlink() argument 352 parms.old_path.type = VMMDEV_HGCM_PARM_TYPE_LINADDR_KERNEL_IN; in vboxsf_symlink() 353 parms.old_path.u.pointer.size = shfl_string_buf_size(old_path); in vboxsf_symlink() 354 parms.old_path.u.pointer.u.linear_addr = (uintptr_t)old_path; in vboxsf_symlink()
|
A D | vfsmod.h | 141 struct shfl_string *old_path, struct shfl_fsobjinfo *buf);
|
A D | shfl_hostintf.h | 889 struct vmmdev_hgcm_function_parameter old_path; member
|
/linux-6.3-rc2/security/apparmor/include/ |
A D | mount.h | 47 int aa_pivotroot(struct aa_label *label, const struct path *old_path,
|
/linux-6.3-rc2/fs/ocfs2/ |
A D | ioctl.c | 848 const char __user *old_path; in ocfs2_ioctl() local 893 old_path = (const char __user *)(unsigned long)args.old_path; in ocfs2_ioctl() 897 return ocfs2_reflink_ioctl(inode, old_path, new_path, preserve); in ocfs2_ioctl() 959 return ocfs2_reflink_ioctl(inode, compat_ptr(args.old_path), in ocfs2_compat_ioctl()
|
A D | ocfs2_ioctl.h | 55 __u64 old_path; member
|
A D | refcounttree.c | 4396 struct path old_path, new_path; in ocfs2_reflink_ioctl() local 4402 error = user_path_at(AT_FDCWD, oldname, 0, &old_path); in ocfs2_reflink_ioctl() 4416 if (old_path.mnt != new_path.mnt) { in ocfs2_reflink_ioctl() 4421 error = ocfs2_vfs_reflink(old_path.dentry, in ocfs2_reflink_ioctl() 4427 path_put(&old_path); in ocfs2_reflink_ioctl()
|
/linux-6.3-rc2/tools/perf/ |
A D | builtin-help.c | 331 const char *old_path = getenv("MANPATH"); in setup_man_path() local 337 if (asprintf(&new_path, "%s:%s", system_path(PERF_MAN_PATH), old_path ?: "") > 0) { in setup_man_path()
|
/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/cifs/ |
A D | cifsproto.h | 659 const char *old_path, in get_dfs_path() argument 663 return dfs_cache_find(xid, ses, nls_codepage, remap, old_path, in get_dfs_path()
|
/linux-6.3-rc2/security/landlock/ |
A D | fs.c | 1092 static int hook_sb_pivotroot(const struct path *const old_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); 704 static inline int security_sb_pivotroot(const struct path *old_path, in security_sb_pivotroot() argument
|
A D | lsm_hook_defs.h | 74 LSM_HOOK(int, 0, sb_pivotroot, const struct path *old_path,
|
/linux-6.3-rc2/sound/pci/hda/ |
A D | hda_generic.c | 4089 struct nid_path *old_path, *path; in mux_select() local 4100 old_path = get_input_path(codec, adc_idx, spec->cur_mux[adc_idx]); in mux_select() 4101 if (!old_path) in mux_select() 4103 if (old_path->active) in mux_select() 4104 snd_hda_activate_path(codec, old_path, false, false); in mux_select() 4122 path_power_down_sync(codec, old_path); in mux_select()
|
/linux-6.3-rc2/security/ |
A D | security.c | 1015 int security_sb_pivotroot(const struct path *old_path, const struct path *new_path) in security_sb_pivotroot() argument 1017 return call_int_hook(sb_pivotroot, 0, old_path, new_path); in security_sb_pivotroot()
|