Lines Matching defs:ok
695 bool ok;
713 ok = false;
715 if (!ok && !(mode & atf_fs_access_x)) {
717 ok = true;
720 if (!ok && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH))) {
723 ok = true;
726 if (!ok && (atf_user_euid() == st.st_uid)) {
727 ok = ((mode & atf_fs_access_r) && (st.st_mode & S_IRUSR)) ||
731 if (!ok && atf_user_is_member_of_group(st.st_gid)) {
732 ok = ((mode & atf_fs_access_r) && (st.st_mode & S_IRGRP)) ||
736 if (!ok && ((atf_user_euid() != st.st_uid) &&
738 ok = ((mode & atf_fs_access_r) && (st.st_mode & S_IROTH)) ||
744 if (!ok)