Lines Matching refs:flavor

2014  * only one security flavor is allowed.  So we need
2015 * to determine two things: the particular flavor,
2017 * flavor, i.e. is in the access list.
2080 * client may get readonly access with one flavor
2161 * flavor that the client is using. If it finds
2165 * flavor. Other flavors are values of the new "sec=" option.
2168 check_client(share_t *sh, struct cln *cln, int flavor, uid_t clnt_uid,
2173 return (check_client_new(sh, cln, flavor, clnt_uid, clnt_gid,
2177 return (check_client_old(sh, cln, flavor, clnt_uid, clnt_gid,
2302 check_client_old(share_t *sh, struct cln *cln, int flavor, uid_t clnt_uid,
2307 int match; /* Set when a flavor is matched */
2325 if (flavor == AUTH_SYS && clnt_ngids == NGRPS && ngroups_max > NGRPS)
2369 if (flavor != AUTH_SYS)
2409 if (flavor != AUTH_SYS)
2482 if (flavor != AUTH_SYS)
2568 if (flavor != match || perm & NFSAUTH_DENIED)
2580 * The client matched a flavor entry that
2610 * Check if the client has access by using a flavor different from
2611 * the given "flavor". If "flavor" is not in the flavor list,
2612 * return TRUE to indicate that this "flavor" is a wrong sec.
2615 is_wrongsec(share_t *sh, struct cln *cln, int flavor)
2620 /* get the flavor list that the client has access with */
2627 * Check if the given "flavor" is in the flavor_list.
2630 if (flavor == flavor_list[i])
2635 * If "flavor" is not in the flavor_list, return TRUE to indicate
2636 * that the client should have access by using a security flavor
2637 * different from this "flavor".
2645 * client is allowed to use the given security flavor.
2648 * for a flavor match, then pay attention to the ro, rw,
2659 check_client_new(share_t *sh, struct cln *cln, int flavor, uid_t clnt_uid,
2666 int match = 0; /* Set when a flavor is matched */
2684 if (flavor == AUTH_SYS && clnt_ngids == NGRPS && ngroups_max > NGRPS)
2699 if (flavor == map_flavor(f)) {
2735 if (flavor != AUTH_SYS)
2778 if (flavor != AUTH_SYS)
2851 if (flavor != AUTH_SYS)
2947 * check if it may have access by using a different flavor.
2952 if (is_wrongsec(sh, cln, flavor))
2959 * The client matched a flavor entry that