/Linux-v6.1/tools/testing/selftests/landlock/ |
D | fs_test.c | 34 #ifndef RENAME_EXCHANGE 35 #define RENAME_EXCHANGE (1 << 1) macro 1845 if (renameat2(AT_FDCWD, oldpath, AT_FDCWD, newpath, RENAME_EXCHANGE)) in test_exchange() 1880 RENAME_EXCHANGE)); in TEST_F_FORK() 1883 RENAME_EXCHANGE)); in TEST_F_FORK() 1893 RENAME_EXCHANGE)); in TEST_F_FORK() 1896 RENAME_EXCHANGE)); in TEST_F_FORK() 1901 RENAME_EXCHANGE)); in TEST_F_FORK() 1907 RENAME_EXCHANGE)); in TEST_F_FORK() 1922 RENAME_EXCHANGE)); in TEST_F_FORK() [all …]
|
/Linux-v6.1/tools/testing/selftests/bpf/prog_tests/ |
D | test_bpffs.c | 97 err = renameat2(0, TDIR "/fs1/a", 0, TDIR "/fs1/b", RENAME_EXCHANGE); in fn() 113 err = renameat2(0, TDIR "/fs1/c", 0, TDIR "/fs1/b", RENAME_EXCHANGE); in fn()
|
/Linux-v6.1/tools/testing/selftests/filesystems/fat/ |
D | rename_exchange.c | 30 ret = renameat2(AT_FDCWD, argv[1], AT_FDCWD, argv[2], RENAME_EXCHANGE); in main()
|
/Linux-v6.1/fs/overlayfs/ |
D | dir.c | 123 flags = RENAME_EXCHANGE; in ovl_cleanup_and_whiteout() 415 err = ovl_do_rename(ofs, wdir, opaquedir, udir, upper, RENAME_EXCHANGE); in ovl_clear_empty() 539 RENAME_EXCHANGE); in ovl_create_over_whiteout() 1094 bool overwrite = !(flags & RENAME_EXCHANGE); in ovl_rename() 1104 if (flags & ~(RENAME_EXCHANGE | RENAME_NOREPLACE)) in ovl_rename() 1129 flags |= RENAME_EXCHANGE; in ovl_rename() 1132 flags |= RENAME_EXCHANGE; in ovl_rename() 1228 if (flags & RENAME_EXCHANGE) in ovl_rename()
|
/Linux-v6.1/tools/testing/selftests/openat2/ |
D | rename_attack_test.c | 66 renameat2(dirfd, a, dirfd, b, RENAME_EXCHANGE); in spawn_attack()
|
/Linux-v6.1/tools/include/uapi/linux/ |
D | fs.h | 51 #define RENAME_EXCHANGE (1 << 1) /* Exchange source and dest */ macro
|
/Linux-v6.1/include/uapi/linux/ |
D | fs.h | 51 #define RENAME_EXCHANGE (1 << 1) /* Exchange source and dest */ macro
|
/Linux-v6.1/fs/ |
D | namei.c | 4709 if (!(flags & RENAME_EXCHANGE)) in vfs_rename() 4733 if ((flags & RENAME_EXCHANGE) && new_is_dir) { in vfs_rename() 4748 if (!is_dir || (flags & RENAME_EXCHANGE)) in vfs_rename() 4765 if ((flags & RENAME_EXCHANGE) && !is_dir && new_is_dir && in vfs_rename() 4784 if (!(flags & RENAME_EXCHANGE) && target) { in vfs_rename() 4793 if (!(flags & RENAME_EXCHANGE)) in vfs_rename() 4799 if (!is_dir || (flags & RENAME_EXCHANGE)) in vfs_rename() 4806 !(flags & RENAME_EXCHANGE) ? target : NULL, old_dentry); in vfs_rename() 4807 if (flags & RENAME_EXCHANGE) { in vfs_rename() 4832 if (flags & ~(RENAME_NOREPLACE | RENAME_EXCHANGE | RENAME_WHITEOUT)) in do_renameat2() [all …]
|
D | libfs.c | 483 if (flags & ~(RENAME_NOREPLACE | RENAME_EXCHANGE)) in simple_rename() 486 if (flags & RENAME_EXCHANGE) in simple_rename()
|
/Linux-v6.1/fs/affs/ |
D | namei.c | 511 if (flags & ~(RENAME_NOREPLACE | RENAME_EXCHANGE)) in affs_rename2() 517 if (flags & RENAME_EXCHANGE) in affs_rename2()
|
/Linux-v6.1/fs/crypto/ |
D | hooks.c | 87 if ((flags & RENAME_EXCHANGE) && in __fscrypt_prepare_rename()
|
/Linux-v6.1/security/tomoyo/ |
D | tomoyo.c | 280 if (flags & RENAME_EXCHANGE) { in tomoyo_path_rename()
|
/Linux-v6.1/fs/xfs/ |
D | xfs_iops.c | 459 if (flags & ~(RENAME_NOREPLACE | RENAME_EXCHANGE | RENAME_WHITEOUT)) in xfs_vn_rename() 463 if (flags & RENAME_EXCHANGE) in xfs_vn_rename()
|
D | xfs_inode.c | 2776 if ((flags & RENAME_EXCHANGE) && !target_ip) in xfs_rename() 2851 if (flags & RENAME_EXCHANGE) in xfs_rename()
|
/Linux-v6.1/fs/fat/ |
D | namei_vfat.c | 1165 if (flags & ~(RENAME_NOREPLACE | RENAME_EXCHANGE)) in vfat_rename2() 1168 if (flags & RENAME_EXCHANGE) { in vfat_rename2()
|
/Linux-v6.1/fs/fuse/ |
D | dir.c | 977 if (flags & RENAME_EXCHANGE) in fuse_rename_common() 985 if (!(flags & RENAME_EXCHANGE) && d_really_is_positive(newent)) in fuse_rename_common() 1011 if (flags & ~(RENAME_NOREPLACE | RENAME_EXCHANGE | RENAME_WHITEOUT)) in fuse_rename2()
|
/Linux-v6.1/security/landlock/ |
D | fs.c | 1105 !!(flags & RENAME_EXCHANGE)); in hook_path_rename()
|
/Linux-v6.1/Documentation/filesystems/ |
D | directory-locking.rst | 27 RENAME_EXCHANGE in flags argument) lock both. In any case,
|
/Linux-v6.1/fs/f2fs/ |
D | namei.c | 1312 if (flags & ~(RENAME_NOREPLACE | RENAME_EXCHANGE | RENAME_WHITEOUT)) in f2fs_rename2() 1320 if (flags & RENAME_EXCHANGE) { in f2fs_rename2()
|
/Linux-v6.1/security/apparmor/ |
D | lsm.c | 365 if ((flags & RENAME_EXCHANGE) && !path_mediated_fs(new_dentry)) in apparmor_path_rename() 380 if (flags & RENAME_EXCHANGE) { in apparmor_path_rename()
|
/Linux-v6.1/fs/ubifs/ |
D | dir.c | 1617 if (flags & ~(RENAME_NOREPLACE | RENAME_WHITEOUT | RENAME_EXCHANGE)) in ubifs_rename() 1628 if (flags & RENAME_EXCHANGE) in ubifs_rename()
|
/Linux-v6.1/fs/hostfs/ |
D | hostfs_kern.c | 745 if (flags & ~(RENAME_NOREPLACE | RENAME_EXCHANGE)) in hostfs_rename2()
|
/Linux-v6.1/fs/gfs2/ |
D | inode.c | 1765 if (flags & ~RENAME_EXCHANGE) in gfs2_rename2() 1768 if (flags & RENAME_EXCHANGE) in gfs2_rename2()
|
/Linux-v6.1/mm/ |
D | shmem.c | 3086 if (flags & ~(RENAME_NOREPLACE | RENAME_EXCHANGE | RENAME_WHITEOUT)) in shmem_rename2() 3089 if (flags & RENAME_EXCHANGE) in shmem_rename2()
|
/Linux-v6.1/fs/ext4/ |
D | namei.c | 4164 if (flags & ~(RENAME_NOREPLACE | RENAME_EXCHANGE | RENAME_WHITEOUT)) in ext4_rename2() 4172 if (flags & RENAME_EXCHANGE) { in ext4_rename2()
|