Home
last modified time | relevance | path

Searched refs:dfd (Results 1 – 8 of 8) sorted by relevance

/tools/testing/selftests/openat2/
Drename_attack_test.c37 int dfd; in setup_testdir() local
43 dfd = open(dirname, O_PATH | O_DIRECTORY); in setup_testdir()
44 if (dfd < 0) in setup_testdir()
47 E_mkdirat(dfd, "a", 0755); in setup_testdir()
48 E_mkdirat(dfd, "b", 0755); in setup_testdir()
49 E_mkdirat(dfd, "a/c", 0755); in setup_testdir()
51 return dfd; in setup_testdir()
86 int dfd, afd; in test_rename_attack() local
101 dfd = setup_testdir(); in test_rename_attack()
102 afd = openat(dfd, "a", O_PATH); in test_rename_attack()
[all …]
Dhelpers.c22 int raw_openat2(int dfd, const char *path, void *how, size_t size) in raw_openat2() argument
24 int ret = syscall(__NR_openat2, dfd, path, how, size); in raw_openat2()
28 int sys_openat2(int dfd, const char *path, struct open_how *how) in sys_openat2() argument
30 return raw_openat2(dfd, path, how, sizeof(*how)); in sys_openat2()
33 int sys_openat(int dfd, const char *path, struct open_how *how) in sys_openat() argument
35 int ret = openat(dfd, path, how->flags, how->mode); in sys_openat()
47 int touchat(int dfd, const char *path) in touchat() argument
49 int fd = openat(dfd, path, O_CREAT, 0700); in touchat()
71 bool fdequal(int fd, int dfd, const char *path) in fdequal() argument
77 dfdpath = fdreadlink(dfd); in fdequal()
Dresolve_test.c49 int dfd, tmpfd; in setup_testdir() local
59 dfd = open(dirname, O_PATH | O_DIRECTORY); in setup_testdir()
60 if (dfd < 0) in setup_testdir()
64 E_mkdirat(dfd, "root", 0755); in setup_testdir()
65 tmpfd = openat(dfd, "root", O_PATH | O_DIRECTORY); in setup_testdir()
68 close(dfd); in setup_testdir()
69 dfd = tmpfd; in setup_testdir()
71 E_symlinkat("/proc/self/exe", dfd, "procexe"); in setup_testdir()
72 E_symlinkat("/proc/self/root", dfd, "procroot"); in setup_testdir()
73 E_mkdirat(dfd, "root", 0755); in setup_testdir()
[all …]
Dhelpers.h96 int raw_openat2(int dfd, const char *path, void *how, size_t size);
97 int sys_openat2(int dfd, const char *path, struct open_how *how);
98 int sys_openat(int dfd, const char *path, struct open_how *how);
102 int touchat(int dfd, const char *path);
104 bool fdequal(int fd, int dfd, const char *path);
/tools/perf/examples/bpf/
Dsys_enter_openat.c22 long dfd; member
Detcsnoop.c58 long dfd; member
Daugmented_syscalls.c66 long dfd; member
/tools/perf/Documentation/
Dperf-trace.txt287 2272.992 ( 0.037 ms): gnome-shell/1370 openat(dfd: CWD, filename: /proc/self/stat) = 31
288 2277.481 ( 0.139 ms): gnome-shell/3039 openat(dfd: CWD, filename: /proc/self/stat) = 65
289 3026.398 ( 0.076 ms): gnome-shell/3039 openat(dfd: CWD, filename: /proc/self/stat) = 65
290 4294.665 ( 0.015 ms): sed/15879 openat(dfd: CWD, filename: /etc/ld.so.cache, flags: CLOEXEC) = 3