Lines Matching refs:ok
699 bool ok;
717 ok = false;
719 if (!ok && !(mode & atf_fs_access_x)) {
721 ok = true;
724 if (!ok && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH))) {
727 ok = true;
730 if (!ok && (atf_user_euid() == st.st_uid)) {
731 ok = ((mode & atf_fs_access_r) && (st.st_mode & S_IRUSR)) ||
735 if (!ok && atf_user_is_member_of_group(st.st_gid)) {
736 ok = ((mode & atf_fs_access_r) && (st.st_mode & S_IRGRP)) ||
740 if (!ok && ((atf_user_euid() != st.st_uid) &&
742 ok = ((mode & atf_fs_access_r) && (st.st_mode & S_IROTH)) ||
748 if (!ok)