/openbmc/linux/tools/testing/selftests/landlock/ |
H A D | fs_test.c | 37 #ifndef RENAME_EXCHANGE 2001 RENAME_EXCHANGE)); in TEST_F_FORK() 2004 RENAME_EXCHANGE)); in TEST_F_FORK() 2014 RENAME_EXCHANGE)); in TEST_F_FORK() 2017 RENAME_EXCHANGE)); in TEST_F_FORK() 2022 RENAME_EXCHANGE)); in TEST_F_FORK() 2028 RENAME_EXCHANGE)); in TEST_F_FORK() 2080 RENAME_EXCHANGE)); in TEST_F_FORK() 2085 RENAME_EXCHANGE)); in TEST_F_FORK() 2093 RENAME_EXCHANGE)); in TEST_F_FORK() [all …]
|
/openbmc/linux/tools/testing/selftests/filesystems/fat/ |
H A D | rename_exchange.c | 30 ret = renameat2(AT_FDCWD, argv[1], AT_FDCWD, argv[2], RENAME_EXCHANGE); in main()
|
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A 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()
|
/openbmc/linux/fs/overlayfs/ |
H A D | dir.c | 123 flags = RENAME_EXCHANGE; in ovl_cleanup_and_whiteout() 411 err = ovl_do_rename(ofs, wdir, opaquedir, udir, upper, RENAME_EXCHANGE); in ovl_clear_empty() 519 RENAME_EXCHANGE); in ovl_create_over_whiteout() 1088 bool overwrite = !(flags & RENAME_EXCHANGE); in ovl_rename() 1098 if (flags & ~(RENAME_EXCHANGE | RENAME_NOREPLACE)) in ovl_rename() 1123 flags |= RENAME_EXCHANGE; in ovl_rename() 1126 flags |= RENAME_EXCHANGE; in ovl_rename() 1222 if (flags & RENAME_EXCHANGE) in ovl_rename()
|
/openbmc/linux/tools/testing/selftests/openat2/ |
H A D | rename_attack_test.c | 66 renameat2(dirfd, a, dirfd, b, RENAME_EXCHANGE); in spawn_attack()
|
/openbmc/linux/tools/include/uapi/linux/ |
H A D | fs.h | 51 #define RENAME_EXCHANGE (1 << 1) /* Exchange source and dest */ macro
|
/openbmc/linux/include/uapi/linux/ |
H A D | fs.h | 51 #define RENAME_EXCHANGE (1 << 1) /* Exchange source and dest */ macro
|
/openbmc/linux/fs/ |
H A D | namei.c | 4779 if (!(flags & RENAME_EXCHANGE)) in vfs_rename() 4803 if ((flags & RENAME_EXCHANGE) && new_is_dir) { in vfs_rename() 4858 if ((flags & RENAME_EXCHANGE) && !is_dir && new_is_dir && in vfs_rename() 4877 if (!(flags & RENAME_EXCHANGE) && target) { in vfs_rename() 4886 if (!(flags & RENAME_EXCHANGE)) in vfs_rename() 4900 if (flags & RENAME_EXCHANGE) { in vfs_rename() 4929 (flags & RENAME_EXCHANGE)) in do_renameat2() 4932 if (flags & RENAME_EXCHANGE) in do_renameat2() 4983 if (flags & RENAME_EXCHANGE) { in do_renameat2() 4999 if (!(flags & RENAME_EXCHANGE) && new_last.name[new_last.len]) in do_renameat2() [all …]
|
H A D | libfs.c | 757 if (flags & ~(RENAME_NOREPLACE | RENAME_EXCHANGE)) in simple_rename() 760 if (flags & RENAME_EXCHANGE) in simple_rename()
|
/openbmc/linux/fs/affs/ |
H A D | namei.c | 511 if (flags & ~(RENAME_NOREPLACE | RENAME_EXCHANGE)) in affs_rename2() 517 if (flags & RENAME_EXCHANGE) in affs_rename2()
|
/openbmc/linux/fs/crypto/ |
H A D | hooks.c | 87 if ((flags & RENAME_EXCHANGE) && in __fscrypt_prepare_rename()
|
/openbmc/linux/security/tomoyo/ |
H A D | tomoyo.c | 292 if (flags & RENAME_EXCHANGE) { in tomoyo_path_rename()
|
/openbmc/linux/fs/xfs/ |
H A D | xfs_iops.c | 458 if (flags & ~(RENAME_NOREPLACE | RENAME_EXCHANGE | RENAME_WHITEOUT)) in xfs_vn_rename() 462 if (flags & RENAME_EXCHANGE) in xfs_vn_rename()
|
H A D | xfs_inode.c | 2885 if ((flags & RENAME_EXCHANGE) && !target_ip) in xfs_rename() 2960 if (flags & RENAME_EXCHANGE) in xfs_rename()
|
/openbmc/linux/fs/fat/ |
H A D | namei_vfat.c | 1165 if (flags & ~(RENAME_NOREPLACE | RENAME_EXCHANGE)) in vfat_rename2() 1168 if (flags & RENAME_EXCHANGE) { in vfat_rename2()
|
/openbmc/linux/fs/f2fs/ |
H A D | namei.c | 1256 if (flags & ~(RENAME_NOREPLACE | RENAME_EXCHANGE | RENAME_WHITEOUT)) in f2fs_rename2() 1264 if (flags & RENAME_EXCHANGE) { in f2fs_rename2()
|
/openbmc/linux/Documentation/filesystems/ |
H A D | directory-locking.rst | 33 only with RENAME_EXCHANGE, and that won't be removing the target).
|
/openbmc/linux/fs/fuse/ |
H A D | dir.c | 1044 if (flags & RENAME_EXCHANGE) in fuse_rename_common() 1052 if (!(flags & RENAME_EXCHANGE) && d_really_is_positive(newent)) in fuse_rename_common() 1078 if (flags & ~(RENAME_NOREPLACE | RENAME_EXCHANGE | RENAME_WHITEOUT)) in fuse_rename2()
|
/openbmc/linux/security/landlock/ |
H A D | fs.c | 1127 !!(flags & RENAME_EXCHANGE)); in hook_path_rename()
|
/openbmc/linux/fs/ubifs/ |
H A D | dir.c | 1619 if (flags & ~(RENAME_NOREPLACE | RENAME_WHITEOUT | RENAME_EXCHANGE)) in ubifs_rename() 1630 if (flags & RENAME_EXCHANGE) in ubifs_rename()
|
/openbmc/linux/security/apparmor/ |
H A D | lsm.c | 382 if ((flags & RENAME_EXCHANGE) && !path_mediated_fs(new_dentry)) in apparmor_path_rename() 399 if (flags & RENAME_EXCHANGE) { in apparmor_path_rename()
|
/openbmc/linux/fs/gfs2/ |
H A D | inode.c | 1787 if (flags & ~RENAME_EXCHANGE) in gfs2_rename2() 1790 if (flags & RENAME_EXCHANGE) in gfs2_rename2()
|
/openbmc/linux/fs/hostfs/ |
H A D | hostfs_kern.c | 755 if (flags & ~(RENAME_NOREPLACE | RENAME_EXCHANGE)) in hostfs_rename2()
|
/openbmc/linux/fs/ext4/ |
H A D | namei.c | 4243 if (flags & ~(RENAME_NOREPLACE | RENAME_EXCHANGE | RENAME_WHITEOUT)) in ext4_rename2() 4251 if (flags & RENAME_EXCHANGE) { in ext4_rename2()
|
/openbmc/linux/mm/ |
H A D | shmem.c | 3426 if (flags & ~(RENAME_NOREPLACE | RENAME_EXCHANGE | RENAME_WHITEOUT)) in shmem_rename2() 3429 if (flags & RENAME_EXCHANGE) in shmem_rename2()
|