Lines Matching defs:token
44 * Allocate a Solaris cred and initialize it based on the access token.
51 * to the token's primary group.
54 smb_cred_create(smb_token_t *token)
62 ASSERT(token);
63 ASSERT(token->tkn_posix_grps);
64 posix_grps = token->tkn_posix_grps;
69 if (!IDMAP_ID_IS_EPHEMERAL(token->tkn_user.i_id) &&
73 gid = token->tkn_primary_grp.i_id;
76 if (crsetugid(cr, token->tkn_user.i_id, gid) != 0) {
86 smb_cred_set_sid(&token->tkn_user, &ksid);
88 smb_cred_set_sid(&token->tkn_primary_grp, &ksid);
90 smb_cred_set_sid(&token->tkn_owner, &ksid);
92 ksidlist = smb_cred_set_sidlist(&token->tkn_win_grps);
102 if (smb_token_query_privilege(token, SE_TAKE_OWNERSHIP_LUID)) {
137 * Allocate and initialize the ksidlist based on the access token group list.