Lines Matching defs:token
48 * access token.
51 smb_token_query_privilege(smb_token_t *token, int priv_id)
56 if ((token == NULL) || (token->tkn_privileges == NULL))
59 privset = token->tkn_privileges;
73 * Basic sanity check on a token.
76 smb_token_valid(smb_token_t *token)
78 if (token == NULL)
81 if ((token->tkn_user.i_sid == NULL) ||
82 (token->tkn_owner.i_sid == NULL) ||
83 (token->tkn_primary_grp.i_sid == NULL) ||
84 (token->tkn_account_name == NULL) ||
85 (token->tkn_domain_name == NULL) ||
86 (token->tkn_posix_grps == NULL))
89 if ((token->tkn_win_grps.i_cnt != 0) &&
90 (token->tkn_win_grps.i_ids == NULL))
169 * Call xdr_free before freeing the token structure.
172 smb_token_free(smb_token_t *token)
174 if (token != NULL) {
175 xdr_free(smb_token_xdr, (char *)token);
176 kmem_free(token, sizeof (smb_token_t));