Lines Matching refs:dfd_cap
119 int fd_cap, fd_capcap, dfd_cap; in try_file_ops() local
138 REQUIRE(dfd_cap = cap_new(dirfd, rights)); in try_file_ops()
139 CHECK(cap_getrights(dfd_cap, &erights) == 0); in try_file_ops()
187 ret = openat(dfd_cap, "cap_create", O_CREAT | O_RDONLY, 0600); in try_file_ops()
192 ret = openat(dfd_cap, "cap_create", O_CREAT | O_WRONLY | O_APPEND, in try_file_ops()
198 ret = openat(dfd_cap, "cap_create", O_CREAT | O_RDWR | O_APPEND, 0600); in try_file_ops()
210 ret = openat(dfd_cap, "cap_fsync", O_FSYNC | O_RDONLY); in try_file_ops()
214 ret = openat(dfd_cap, "cap_fsync", O_FSYNC | O_WRONLY | O_APPEND); in try_file_ops()
218 ret = openat(dfd_cap, "cap_fsync", O_FSYNC | O_RDWR | O_APPEND); in try_file_ops()
222 ret = openat(dfd_cap, "cap_fsync", O_SYNC | O_RDONLY); in try_file_ops()
226 ret = openat(dfd_cap, "cap_fsync", O_SYNC | O_WRONLY | O_APPEND); in try_file_ops()
230 ret = openat(dfd_cap, "cap_fsync", O_SYNC | O_RDWR | O_APPEND); in try_file_ops()
242 ret = openat(dfd_cap, "cap_ftruncate", O_TRUNC | O_RDONLY); in try_file_ops()
246 ret = openat(dfd_cap, "cap_ftruncate", O_TRUNC | O_WRONLY); in try_file_ops()
250 ret = openat(dfd_cap, "cap_ftruncate", O_TRUNC | O_RDWR); in try_file_ops()
256 ret = openat(dfd_cap, "cap_create", O_CREAT | O_WRONLY, 0600); in try_file_ops()
261 ret = openat(dfd_cap, "cap_create", O_CREAT | O_RDWR, 0600); in try_file_ops()
271 ret = openat(dfd_cap, "cap_fsync", O_FSYNC | O_WRONLY); in try_file_ops()
275 ret = openat(dfd_cap, "cap_fsync", O_FSYNC | O_RDWR); in try_file_ops()
279 ret = openat(dfd_cap, "cap_fsync", O_SYNC | O_WRONLY); in try_file_ops()
283 ret = openat(dfd_cap, "cap_fsync", O_SYNC | O_RDWR); in try_file_ops()
299 ret = chflagsat(dfd_cap, "cap_chflagsat", UF_NODUMP, 0); in try_file_ops()
309 ret = fchownat(dfd_cap, "cap_fchownat", -1, -1, 0); in try_file_ops()
319 ret = fchmodat(dfd_cap, "cap_fchmodat", 0600, 0); in try_file_ops()
336 ret = fstatat(dfd_cap, "cap_fstatat", &sb, 0); in try_file_ops()
352 ret = futimesat(dfd_cap, "cap_futimesat", NULL); in try_file_ops()
359 ret = linkat(dirfd, "cap_linkat_src", dfd_cap, "cap_linkat_dst", 0); in try_file_ops()
364 ret = mkdirat(dfd_cap, "cap_mkdirat", 0700); in try_file_ops()
368 ret = mkfifoat(dfd_cap, "cap_mkfifoat", 0600); in try_file_ops()
372 ret = mknodat(dfd_cap, "cap_mknodat", S_IFCHR | 0600, 0); in try_file_ops()
378 ret = symlinkat("test", dfd_cap, "cap_symlinkat"); in try_file_ops()
385 ret = unlinkat(dfd_cap, "cap_unlinkat", 0); in try_file_ops()
390 ret = unlinkat(dfd_cap, "cap_unlinkat", AT_REMOVEDIR); in try_file_ops()