Lines Matching refs:dfd_cap

680   int dfd_cap = dup(dirfd);  in TryDirOps()  local
681 EXPECT_OK(dfd_cap); in TryDirOps()
682 EXPECT_OK(cap_rights_limit(dfd_cap, &rights)); in TryDirOps()
683 EXPECT_OK(cap_rights_get(dfd_cap, &erights)); in TryDirOps()
686 int rc = openat(dfd_cap, "cap_create", O_CREAT | O_RDONLY, 0600); in TryDirOps()
692 rc = openat(dfd_cap, "cap_create", O_CREAT | O_WRONLY | O_APPEND, 0600); in TryDirOps()
698 rc = openat(dfd_cap, "cap_create", O_CREAT | O_RDWR | O_APPEND, 0600); in TryDirOps()
708 rc = faccessat(dfd_cap, "cap_faccess", F_OK, 0); in TryDirOps()
715 rc = openat(dfd_cap, "cap_fsync", O_FSYNC | O_RDONLY); in TryDirOps()
720 rc = openat(dfd_cap, "cap_fsync", O_FSYNC | O_WRONLY | O_APPEND); in TryDirOps()
725 rc = openat(dfd_cap, "cap_fsync", O_FSYNC | O_RDWR | O_APPEND); in TryDirOps()
730 rc = openat(dfd_cap, "cap_fsync", O_SYNC | O_RDONLY); in TryDirOps()
735 rc = openat(dfd_cap, "cap_fsync", O_SYNC | O_WRONLY | O_APPEND); in TryDirOps()
740 rc = openat(dfd_cap, "cap_fsync", O_SYNC | O_RDWR | O_APPEND); in TryDirOps()
750 rc = openat(dfd_cap, "cap_ftruncate", O_TRUNC | O_RDONLY); in TryDirOps()
755 rc = openat(dfd_cap, "cap_ftruncate", O_TRUNC | O_WRONLY); in TryDirOps()
760 rc = openat(dfd_cap, "cap_ftruncate", O_TRUNC | O_RDWR); in TryDirOps()
767 rc = openat(dfd_cap, "cap_create", O_CREAT | O_WRONLY, 0600); in TryDirOps()
773 rc = openat(dfd_cap, "cap_create", O_CREAT | O_RDWR, 0600); in TryDirOps()
783 rc = openat(dfd_cap, "cap_fsync", O_FSYNC | O_WRONLY); in TryDirOps()
789 rc = openat(dfd_cap, "cap_fsync", O_FSYNC | O_RDWR); in TryDirOps()
795 rc = openat(dfd_cap, "cap_fsync", O_SYNC | O_WRONLY); in TryDirOps()
801 rc = openat(dfd_cap, "cap_fsync", O_SYNC | O_RDWR); in TryDirOps()
813 rc = chflagsat(dfd_cap, "cap_chflagsat", UF_NODUMP, 0); in TryDirOps()
821 rc = fchownat(dfd_cap, "cap_fchownat", -1, -1, 0); in TryDirOps()
828 rc = fchmodat(dfd_cap, "cap_fchmodat", 0600, 0); in TryDirOps()
836 rc = fstatat(dfd_cap, "cap_fstatat", &sb, 0); in TryDirOps()
843 rc = futimesat(dfd_cap, "cap_futimesat", NULL); in TryDirOps()
854 rc = linkat(dirfd, "cap_linkat_src", dfd_cap, "cap_linkat_dst", 0); in TryDirOps()
860 rc = linkat(dfd_cap, "cap_linkat_src", dirfd, "cap_linkat_dst", 0); in TryDirOps()
868 rc = mkdirat(dfd_cap, "cap_mkdirat", 0700); in TryDirOps()
875 rc = mkfifoat(dfd_cap, "cap_mkfifoat", 0600); in TryDirOps()
883 rc = mknodat(dfd_cap, "cap_mknodat", S_IFCHR | 0600, 0); in TryDirOps()
897 rc = renameat(dirfd, "cap_renameat_src", dfd_cap, "cap_renameat_dst"); in TryDirOps()
909 rc = renameat(dfd_cap, "cap_renameat_src", dirfd, "cap_renameat_dst"); in TryDirOps()
918 rc = symlinkat("test", dfd_cap, "cap_symlinkat"); in TryDirOps()
927 rc = unlinkat(dfd_cap, "cap_unlinkat", 0); in TryDirOps()
931 rc = unlinkat(dfd_cap, "cap_unlinkat", AT_REMOVEDIR); in TryDirOps()
935 EXPECT_OK(close(dfd_cap)); in TryDirOps()