Lines Matching refs:dfd_cap
117 int fd_cap, fd_capcap, dfd_cap; in try_file_ops() local
136 REQUIRE(dfd_cap = cap_new(dirfd, rights)); in try_file_ops()
137 CHECK(cap_getrights(dfd_cap, &erights) == 0); in try_file_ops()
185 ret = openat(dfd_cap, "cap_create", O_CREAT | O_RDONLY, 0600); in try_file_ops()
190 ret = openat(dfd_cap, "cap_create", O_CREAT | O_WRONLY | O_APPEND, in try_file_ops()
196 ret = openat(dfd_cap, "cap_create", O_CREAT | O_RDWR | O_APPEND, 0600); in try_file_ops()
208 ret = openat(dfd_cap, "cap_fsync", O_FSYNC | O_RDONLY); in try_file_ops()
212 ret = openat(dfd_cap, "cap_fsync", O_FSYNC | O_WRONLY | O_APPEND); in try_file_ops()
216 ret = openat(dfd_cap, "cap_fsync", O_FSYNC | O_RDWR | O_APPEND); in try_file_ops()
220 ret = openat(dfd_cap, "cap_fsync", O_SYNC | O_RDONLY); in try_file_ops()
224 ret = openat(dfd_cap, "cap_fsync", O_SYNC | O_WRONLY | O_APPEND); in try_file_ops()
228 ret = openat(dfd_cap, "cap_fsync", O_SYNC | O_RDWR | O_APPEND); in try_file_ops()
240 ret = openat(dfd_cap, "cap_ftruncate", O_TRUNC | O_RDONLY); in try_file_ops()
244 ret = openat(dfd_cap, "cap_ftruncate", O_TRUNC | O_WRONLY); in try_file_ops()
248 ret = openat(dfd_cap, "cap_ftruncate", O_TRUNC | O_RDWR); in try_file_ops()
254 ret = openat(dfd_cap, "cap_create", O_CREAT | O_WRONLY, 0600); in try_file_ops()
259 ret = openat(dfd_cap, "cap_create", O_CREAT | O_RDWR, 0600); in try_file_ops()
269 ret = openat(dfd_cap, "cap_fsync", O_FSYNC | O_WRONLY); in try_file_ops()
273 ret = openat(dfd_cap, "cap_fsync", O_FSYNC | O_RDWR); in try_file_ops()
277 ret = openat(dfd_cap, "cap_fsync", O_SYNC | O_WRONLY); in try_file_ops()
281 ret = openat(dfd_cap, "cap_fsync", O_SYNC | O_RDWR); in try_file_ops()
297 ret = chflagsat(dfd_cap, "cap_chflagsat", UF_NODUMP, 0); in try_file_ops()
307 ret = fchownat(dfd_cap, "cap_fchownat", -1, -1, 0); in try_file_ops()
317 ret = fchmodat(dfd_cap, "cap_fchmodat", 0600, 0); in try_file_ops()
334 ret = fstatat(dfd_cap, "cap_fstatat", &sb, 0); in try_file_ops()
350 ret = futimesat(dfd_cap, "cap_futimesat", NULL); in try_file_ops()
357 ret = linkat(dirfd, "cap_linkat_src", dfd_cap, "cap_linkat_dst", 0); in try_file_ops()
362 ret = mkdirat(dfd_cap, "cap_mkdirat", 0700); in try_file_ops()
366 ret = mkfifoat(dfd_cap, "cap_mkfifoat", 0600); in try_file_ops()
370 ret = mknodat(dfd_cap, "cap_mknodat", S_IFCHR | 0600, 0); in try_file_ops()
376 ret = symlinkat("test", dfd_cap, "cap_symlinkat"); in try_file_ops()
383 ret = unlinkat(dfd_cap, "cap_unlinkat", 0); in try_file_ops()
388 ret = unlinkat(dfd_cap, "cap_unlinkat", AT_REMOVEDIR); in try_file_ops()