Home
last modified time | relevance | path

Searched refs:RENAME_EXCHANGE (Results 1 – 25 of 28) sorted by relevance

12

/Linux-v6.1/tools/testing/selftests/landlock/
Dfs_test.c34 #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/
Dtest_bpffs.c97 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/
Drename_exchange.c30 ret = renameat2(AT_FDCWD, argv[1], AT_FDCWD, argv[2], RENAME_EXCHANGE); in main()
/Linux-v6.1/fs/overlayfs/
Ddir.c123 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/
Drename_attack_test.c66 renameat2(dirfd, a, dirfd, b, RENAME_EXCHANGE); in spawn_attack()
/Linux-v6.1/tools/include/uapi/linux/
Dfs.h51 #define RENAME_EXCHANGE (1 << 1) /* Exchange source and dest */ macro
/Linux-v6.1/include/uapi/linux/
Dfs.h51 #define RENAME_EXCHANGE (1 << 1) /* Exchange source and dest */ macro
/Linux-v6.1/fs/
Dnamei.c4709 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 …]
Dlibfs.c483 if (flags & ~(RENAME_NOREPLACE | RENAME_EXCHANGE)) in simple_rename()
486 if (flags & RENAME_EXCHANGE) in simple_rename()
/Linux-v6.1/fs/affs/
Dnamei.c511 if (flags & ~(RENAME_NOREPLACE | RENAME_EXCHANGE)) in affs_rename2()
517 if (flags & RENAME_EXCHANGE) in affs_rename2()
/Linux-v6.1/fs/crypto/
Dhooks.c87 if ((flags & RENAME_EXCHANGE) && in __fscrypt_prepare_rename()
/Linux-v6.1/security/tomoyo/
Dtomoyo.c280 if (flags & RENAME_EXCHANGE) { in tomoyo_path_rename()
/Linux-v6.1/fs/xfs/
Dxfs_iops.c459 if (flags & ~(RENAME_NOREPLACE | RENAME_EXCHANGE | RENAME_WHITEOUT)) in xfs_vn_rename()
463 if (flags & RENAME_EXCHANGE) in xfs_vn_rename()
Dxfs_inode.c2776 if ((flags & RENAME_EXCHANGE) && !target_ip) in xfs_rename()
2851 if (flags & RENAME_EXCHANGE) in xfs_rename()
/Linux-v6.1/fs/fat/
Dnamei_vfat.c1165 if (flags & ~(RENAME_NOREPLACE | RENAME_EXCHANGE)) in vfat_rename2()
1168 if (flags & RENAME_EXCHANGE) { in vfat_rename2()
/Linux-v6.1/fs/fuse/
Ddir.c977 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/
Dfs.c1105 !!(flags & RENAME_EXCHANGE)); in hook_path_rename()
/Linux-v6.1/Documentation/filesystems/
Ddirectory-locking.rst27 RENAME_EXCHANGE in flags argument) lock both. In any case,
/Linux-v6.1/fs/f2fs/
Dnamei.c1312 if (flags & ~(RENAME_NOREPLACE | RENAME_EXCHANGE | RENAME_WHITEOUT)) in f2fs_rename2()
1320 if (flags & RENAME_EXCHANGE) { in f2fs_rename2()
/Linux-v6.1/security/apparmor/
Dlsm.c365 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/
Ddir.c1617 if (flags & ~(RENAME_NOREPLACE | RENAME_WHITEOUT | RENAME_EXCHANGE)) in ubifs_rename()
1628 if (flags & RENAME_EXCHANGE) in ubifs_rename()
/Linux-v6.1/fs/hostfs/
Dhostfs_kern.c745 if (flags & ~(RENAME_NOREPLACE | RENAME_EXCHANGE)) in hostfs_rename2()
/Linux-v6.1/fs/gfs2/
Dinode.c1765 if (flags & ~RENAME_EXCHANGE) in gfs2_rename2()
1768 if (flags & RENAME_EXCHANGE) in gfs2_rename2()
/Linux-v6.1/mm/
Dshmem.c3086 if (flags & ~(RENAME_NOREPLACE | RENAME_EXCHANGE | RENAME_WHITEOUT)) in shmem_rename2()
3089 if (flags & RENAME_EXCHANGE) in shmem_rename2()
/Linux-v6.1/fs/ext4/
Dnamei.c4164 if (flags & ~(RENAME_NOREPLACE | RENAME_EXCHANGE | RENAME_WHITEOUT)) in ext4_rename2()
4172 if (flags & RENAME_EXCHANGE) { in ext4_rename2()

12