Symbol: renameat2
fs/namei.c
6196
SYSCALL_DEFINE5(renameat2, int, olddfd, const char __user *, oldname,
tools/testing/selftests/bpf/prog_tests/pinning_devmap_reuse.c
36
err = renameat2(0, pinpath1, 0, pinpath2, RENAME_EXCHANGE);
tools/testing/selftests/bpf/prog_tests/test_bpffs.c
101
err = renameat2(0, TDIR "/fs1/a", 0, TDIR "/fs1/b", RENAME_EXCHANGE);
tools/testing/selftests/bpf/prog_tests/test_bpffs.c
117
err = renameat2(0, TDIR "/fs1/c", 0, TDIR "/fs1/b", RENAME_EXCHANGE);
tools/testing/selftests/bpf/prog_tests/test_bpffs.c
130
err = renameat2(0, TDIR "/fs1/b", 0, TDIR "/fs1/a", RENAME_NOREPLACE);
tools/testing/selftests/filesystems/fat/rename_exchange.c
30
ret = renameat2(AT_FDCWD, argv[1], AT_FDCWD, argv[2], RENAME_EXCHANGE);
tools/testing/selftests/landlock/fs_test.c
2152
if (renameat2(AT_FDCWD, oldpath, AT_FDCWD, newpath, RENAME_EXCHANGE))
tools/testing/selftests/landlock/fs_test.c
2160
if (renameat2(olddirfd, oldpath, newdirfd, newpath, 0))
tools/testing/selftests/landlock/fs_test.c
2168
if (renameat2(olddirfd, oldpath, newdirfd, newpath, RENAME_EXCHANGE))
tools/testing/selftests/landlock/fs_test.c
2197
ASSERT_EQ(-1, renameat2(AT_FDCWD, file1_s2d3, AT_FDCWD, file1_s1d3,
tools/testing/selftests/landlock/fs_test.c
2200
ASSERT_EQ(-1, renameat2(AT_FDCWD, file1_s2d3, AT_FDCWD, dir_s1d3,
tools/testing/selftests/landlock/fs_test.c
2210
ASSERT_EQ(-1, renameat2(AT_FDCWD, file1_s2d1, AT_FDCWD, file1_s1d3,
tools/testing/selftests/landlock/fs_test.c
2213
ASSERT_EQ(-1, renameat2(AT_FDCWD, dir_s2d2, AT_FDCWD, file1_s1d3,
tools/testing/selftests/landlock/fs_test.c
2218
ASSERT_EQ(-1, renameat2(AT_FDCWD, dir_s2d2, AT_FDCWD, file1_s2d1,
tools/testing/selftests/landlock/fs_test.c
2224
ASSERT_EQ(-1, renameat2(AT_FDCWD, file1_s2d1, AT_FDCWD, dir_s2d2,
tools/testing/selftests/landlock/fs_test.c
2239
ASSERT_EQ(0, renameat2(AT_FDCWD, file2_s2d3, AT_FDCWD, file1_s2d3,
tools/testing/selftests/landlock/fs_test.c
2244
ASSERT_EQ(0, renameat2(AT_FDCWD, file1_s2d2, AT_FDCWD, dir_s2d3,
tools/testing/selftests/landlock/fs_test.c
2246
ASSERT_EQ(0, renameat2(AT_FDCWD, file1_s2d2, AT_FDCWD, dir_s2d3,
tools/testing/selftests/landlock/fs_test.c
2271
ASSERT_EQ(-1, renameat2(AT_FDCWD, dir_s2d3, AT_FDCWD, dir_s1d3,
tools/testing/selftests/landlock/fs_test.c
2276
ASSERT_EQ(-1, renameat2(AT_FDCWD, file1_s2d2, AT_FDCWD, dir_s1d3,
tools/testing/selftests/landlock/fs_test.c
2284
ASSERT_EQ(-1, renameat2(AT_FDCWD, dir_s1d1, AT_FDCWD, dir_s2d1,
tools/testing/selftests/landlock/fs_test.c
2290
ASSERT_EQ(-1, renameat2(AT_FDCWD, file1_s1d1, AT_FDCWD, dir_s1d2,
tools/testing/selftests/landlock/fs_test.c
2301
ASSERT_EQ(0, renameat2(AT_FDCWD, dir_s1d3, AT_FDCWD, file1_s1d2,
tools/testing/selftests/landlock/fs_test.c
2470
EXPECT_EQ(-1, renameat2(root_fd, ".", root_fd, "does_not_exist", 0));
tools/testing/selftests/landlock/fs_test.c
2613
ASSERT_EQ(-1, renameat2(AT_FDCWD, file2_s1d1, AT_FDCWD, file1_s1d1,
tools/testing/selftests/landlock/fs_test.c
2616
ASSERT_EQ(-1, renameat2(AT_FDCWD, file1_s1d1, AT_FDCWD, file2_s1d1,
tools/testing/selftests/landlock/fs_test.c
2623
ASSERT_EQ(-1, renameat2(AT_FDCWD, file2_s1d1, AT_FDCWD, file2_s1d1,
tools/testing/selftests/landlock/fs_test.c
2634
ASSERT_EQ(-1, renameat2(AT_FDCWD, file1_s2d1, AT_FDCWD, file2_s1d1,
tools/testing/selftests/landlock/fs_test.c
2637
ASSERT_EQ(-1, renameat2(AT_FDCWD, file2_s1d1, AT_FDCWD, file1_s2d1,
tools/testing/selftests/landlock/fs_test.c
2645
ASSERT_EQ(-1, renameat2(AT_FDCWD, file1_s2d1, AT_FDCWD, file2_s1d3,
tools/testing/selftests/landlock/fs_test.c
2657
ASSERT_EQ(-1, renameat2(AT_FDCWD, file1_s2d2, AT_FDCWD, file2_s1d3,
tools/testing/selftests/landlock/fs_test.c
2671
ASSERT_EQ(0, renameat2(AT_FDCWD, file2_s2d3, AT_FDCWD, file1_s1d3,
tools/testing/selftests/landlock/fs_test.c
2695
ASSERT_EQ(-1, renameat2(AT_FDCWD, file1_s2d3, AT_FDCWD, dir_s1d3,
tools/testing/selftests/landlock/fs_test.c
2698
ASSERT_EQ(-1, renameat2(AT_FDCWD, dir_s1d3, AT_FDCWD, file1_s2d3,
tools/testing/selftests/landlock/fs_test.c
2880
ASSERT_EQ(-1, renameat2(AT_FDCWD, file1_s1d1, AT_FDCWD, file1_s2d3,
tools/testing/selftests/landlock/fs_test.c
2883
ASSERT_EQ(-1, renameat2(AT_FDCWD, file1_s2d3, AT_FDCWD, file1_s1d1,
tools/testing/selftests/landlock/fs_test.c
2891
ASSERT_EQ(-1, renameat2(AT_FDCWD, dir_file1_s1d2, AT_FDCWD,
tools/testing/selftests/landlock/fs_test.c
2894
ASSERT_EQ(-1, renameat2(AT_FDCWD, dir_file2_s2d3, AT_FDCWD,
tools/testing/selftests/landlock/fs_test.c
2899
ASSERT_EQ(0, renameat2(AT_FDCWD, dir_s1d3, AT_FDCWD, dir_s2d3,
tools/testing/selftests/landlock/fs_test.c
2901
ASSERT_EQ(0, renameat2(AT_FDCWD, dir_s2d3, AT_FDCWD, dir_s1d3,
tools/testing/selftests/landlock/fs_test.c
2905
ASSERT_EQ(0, renameat2(AT_FDCWD, dir_s2d3, AT_FDCWD, dir_file1_s1d2,
tools/testing/selftests/landlock/fs_test.c
2907
ASSERT_EQ(0, renameat2(AT_FDCWD, dir_file1_s1d2, AT_FDCWD, dir_s2d3,
tools/testing/selftests/landlock/fs_test.c
2920
ASSERT_EQ(0, renameat2(AT_FDCWD, file1_s2d2, AT_FDCWD, dir_file2_s2d3,
tools/testing/selftests/landlock/fs_test.c
2927
ASSERT_EQ(-1, renameat2(AT_FDCWD, dir_file2_s2d3, AT_FDCWD, file1_s2d2,
tools/testing/selftests/landlock/fs_test.c
2930
ASSERT_EQ(-1, renameat2(AT_FDCWD, file1_s2d2, AT_FDCWD, dir_file2_s2d3,
tools/testing/selftests/landlock/fs_test.c
2937
ASSERT_EQ(-1, renameat2(AT_FDCWD, file1_s1d1, AT_FDCWD, file1_s2d3,
tools/testing/selftests/landlock/fs_test.c
2940
ASSERT_EQ(-1, renameat2(AT_FDCWD, file1_s2d3, AT_FDCWD, file1_s1d1,
tools/testing/selftests/landlock/fs_test.c
2945
ASSERT_EQ(-1, renameat2(AT_FDCWD, dir_file1_s1d2, AT_FDCWD,
tools/testing/selftests/landlock/fs_test.c
2948
ASSERT_EQ(-1, renameat2(AT_FDCWD, dir_file2_s2d3, AT_FDCWD,
tools/testing/selftests/landlock/fs_test.c
2953
ASSERT_EQ(-1, renameat2(AT_FDCWD, dir_s1d3, AT_FDCWD, dir_s2d3,
tools/testing/selftests/landlock/fs_test.c
2957
ASSERT_EQ(-1, renameat2(AT_FDCWD, dir_s2d3, AT_FDCWD, dir_s1d3,
tools/testing/selftests/landlock/fs_test.c
2962
ASSERT_EQ(-1, renameat2(AT_FDCWD, dir_s2d3, AT_FDCWD, dir_file1_s1d2,
tools/testing/selftests/landlock/fs_test.c
2966
ASSERT_EQ(-1, renameat2(AT_FDCWD, dir_file1_s1d2, AT_FDCWD, dir_s2d3,
tools/testing/selftests/landlock/fs_test.c
2984
ASSERT_EQ(-1, renameat2(AT_FDCWD, file1_s2d2, AT_FDCWD, dir_file2_s2d3,
tools/testing/selftests/landlock/fs_test.c
2987
ASSERT_EQ(-1, renameat2(AT_FDCWD, dir_file2_s2d3, AT_FDCWD, file1_s2d2,
tools/testing/selftests/landlock/fs_test.c
3006
ASSERT_EQ(0, renameat2(AT_FDCWD, dir_file2_s2d3, AT_FDCWD, file1_s2d2,
tools/testing/selftests/landlock/fs_test.c
3008
ASSERT_EQ(-1, renameat2(AT_FDCWD, file1_s2d2, AT_FDCWD, dir_file2_s2d3,
tools/testing/selftests/landlock/fs_test.c
3011
ASSERT_EQ(-1, renameat2(AT_FDCWD, dir_file2_s2d3, AT_FDCWD, file1_s2d2,
tools/testing/selftests/landlock/fs_test.c
3046
ASSERT_EQ(-1, renameat2(AT_FDCWD, file1_s1d1, AT_FDCWD, dir_s2d2,
tools/testing/selftests/landlock/fs_test.c
3049
ASSERT_EQ(-1, renameat2(AT_FDCWD, file1_s1d1, AT_FDCWD, dir_s2d3,
tools/testing/selftests/landlock/fs_test.c
3067
ASSERT_EQ(0, renameat2(AT_FDCWD, file1_s2d2, AT_FDCWD, dir_s1d3,
tools/testing/selftests/landlock/fs_test.c
3069
ASSERT_EQ(-1, renameat2(AT_FDCWD, file1_s2d2, AT_FDCWD, dir_s1d3,
tools/testing/selftests/landlock/fs_test.c
48
#ifndef renameat2
tools/testing/selftests/openat2/rename_attack_test.c
66
renameat2(dirfd, a, dirfd, b, RENAME_EXCHANGE);