Lines Matching defs:flavor

1994  * only one security flavor is allowed.  So we need
1995 * to determine two things: the particular flavor,
1997 * flavor, i.e. is in the access list.
2060 * client may get readonly access with one flavor
2141 * flavor that the client is using. If it finds
2145 * flavor. Other flavors are values of the new "sec=" option.
2148 check_client(share_t *sh, struct cln *cln, int flavor, uid_t clnt_uid,
2153 return (check_client_new(sh, cln, flavor, clnt_uid, clnt_gid,
2157 return (check_client_old(sh, cln, flavor, clnt_uid, clnt_gid,
2282 check_client_old(share_t *sh, struct cln *cln, int flavor, uid_t clnt_uid,
2287 int match; /* Set when a flavor is matched */
2305 if (flavor == AUTH_SYS && clnt_ngids == NGRPS && ngroups_max > NGRPS)
2349 if (flavor != AUTH_SYS)
2389 if (flavor != AUTH_SYS)
2462 if (flavor != AUTH_SYS)
2548 if (flavor != match || perm & NFSAUTH_DENIED)
2560 * The client matched a flavor entry that
2590 * Check if the client has access by using a flavor different from
2591 * the given "flavor". If "flavor" is not in the flavor list,
2592 * return TRUE to indicate that this "flavor" is a wrong sec.
2595 is_wrongsec(share_t *sh, struct cln *cln, int flavor)
2600 /* get the flavor list that the client has access with */
2607 * Check if the given "flavor" is in the flavor_list.
2610 if (flavor == flavor_list[i])
2615 * If "flavor" is not in the flavor_list, return TRUE to indicate
2616 * that the client should have access by using a security flavor
2617 * different from this "flavor".
2625 * client is allowed to use the given security flavor.
2628 * for a flavor match, then pay attention to the ro, rw,
2639 check_client_new(share_t *sh, struct cln *cln, int flavor, uid_t clnt_uid,
2646 int match = 0; /* Set when a flavor is matched */
2664 if (flavor == AUTH_SYS && clnt_ngids == NGRPS && ngroups_max > NGRPS)
2679 if (flavor == map_flavor(f)) {
2715 if (flavor != AUTH_SYS)
2758 if (flavor != AUTH_SYS)
2831 if (flavor != AUTH_SYS)
2927 * check if it may have access by using a different flavor.
2932 if (is_wrongsec(sh, cln, flavor))
2939 * The client matched a flavor entry that