Lines Matching refs:dir_fd
355 int dir_fd = -1;
669 dir_fd = open(dirpath, O_RDONLY | O_CLOEXEC);
671 if (dir_fd == -1)
678 if (GET_PROT_CLASS(dir_fd) != PROTECTION_CLASS_D)
685 if (SET_PROT_CLASS(dir_fd, PROTECTION_CLASS_A))
692 if (SET_PROT_CLASS(dir_fd, PROTECTION_CLASS_D))
715 old_prot_class = GET_PROT_CLASS(dir_fd);
724 if (SET_PROT_CLASS(dir_fd, new_prot_class))
760 if (!SET_PROT_CLASS(dir_fd, PROTECTION_CLASS_F))
768 if (SET_PROT_CLASS(dir_fd, PROTECTION_CLASS_A))
796 if (SET_PROT_CLASS(dir_fd, PROTECTION_CLASS_B))
842 if (SET_PROT_CLASS(dir_fd, new_prot_class))
902 close(dir_fd);