Searched refs:newcred (Results 1 – 7 of 7) sorted by relevance
/titanic_50/usr/src/uts/common/os/ |
H A D | audit_core.c | 141 cred_t *newcred = ncr; in audit_update_context() local 145 if (newcred != NULL) in audit_update_context() 146 crfree(newcred); in audit_update_context() 154 if (newcred == NULL) in audit_update_context() 155 newcred = cralloc(); in audit_update_context() 160 ainfo = crgetauinfo_modifiable(newcred); in audit_update_context() 163 crfree(newcred); in audit_update_context() 168 crcopy_to(p->p_cred, newcred); in audit_update_context() 169 p->p_cred = newcred; in audit_update_context() 185 crset(p, newcred); in audit_update_context() [all …]
|
H A D | priv.c | 170 cred_t *newcred; in priv_pr_spriv() local 196 newcred = crdup(oldcred); in priv_pr_spriv() 199 bcopy(prpriv->pr_sets, CR_PRIVSETS(newcred), PRIV_SETBYTES); in priv_pr_spriv() 201 cp = &newcred->cr_priv; in priv_pr_spriv() 222 if (i < PRIV_NSET || !priv_valid(newcred)) in priv_pr_spriv() 241 CR_FLAGS(newcred) &= ~PRIV_USER; in priv_pr_spriv() 242 CR_FLAGS(newcred) |= (pii->val & PRIV_USER); in priv_pr_spriv() 267 if ((CR_FLAGS(newcred) & PRIV_AWARE) == 0) { in priv_pr_spriv() 268 CR_FLAGS(newcred) |= PRIV_AWARE; in priv_pr_spriv() 269 priv_adjust_PA(newcred); in priv_pr_spriv() [all …]
|
H A D | exec.c | 559 cred_t *oldcred, *newcred = NULL; in gexec() local 605 newcred = cred = args->pfcred; in gexec() 607 newcred = cred = crdup(cred); in gexec() 655 newcred = cred = args->pfcred; in gexec() 791 if (newcred != NULL) { in gexec() 809 !PRIV_ISASSERT(&CR_IPRIV(newcred), in gexec() 841 if (newcred != NULL && oruid != newcred->cr_ruid) { in gexec() 844 upcount_dec(oruid, crgetzoneid(newcred)); in gexec() 845 upcount_inc(newcred->cr_ruid, crgetzoneid(newcred)); in gexec() 874 if (newcred != NULL) in gexec() [all …]
|
/titanic_50/usr/src/uts/common/syscall/ |
H A D | auditsys.c | 131 cred_t *newcred; in setauid() local 141 newcred = cralloc(); in setauid() 142 if ((auinfo = crgetauinfo_modifiable(newcred)) == NULL) { in setauid() 143 crfree(newcred); in setauid() 150 crcopy_to(p->p_cred, newcred); in setauid() 151 p->p_cred = newcred; in setauid() 157 crset(p, newcred); in setauid() 273 cred_t *newcred; in setaudit() local 286 newcred = cralloc(); in setaudit() 287 if ((ainfo = crgetauinfo_modifiable(newcred)) == NULL) { in setaudit() [all …]
|
/titanic_50/usr/src/uts/common/fs/proc/ |
H A D | prcontrol.c | 2171 cred_t *newcred; in pr_scred() local 2215 newcred = crdup(oldcred); in pr_scred() 2220 (void) crsetresuid(newcred, prcred->pr_ruid, prcred->pr_euid, in pr_scred() 2222 (void) crsetresgid(newcred, prcred->pr_rgid, prcred->pr_egid, in pr_scred() 2226 (void) crsetgroups(newcred, prcred->pr_ngroups, in pr_scred() 2233 p->p_cred = newcred; in pr_scred() 2241 zoneid_t zoneid = crgetzoneid(newcred); in pr_scred() 2271 cred_t *newcred; in pr_szoneid() local 2286 newcred = crdup(oldcred); in pr_szoneid() 2290 crsetzone(newcred, zptr); in pr_szoneid() [all …]
|
/titanic_50/usr/src/lib/libkmf/plugins/kmf_nss/common/ |
H A D | nss_spi.c | 2101 KMF_CREDENTIAL oldcred, newcred; in NSS_SetTokenPin() local 2111 (void *)&newcred, NULL); in NSS_SetTokenPin() 2118 rv = PK11_InitPin(nss_slot, NULL, newcred.cred); in NSS_SetTokenPin() 2130 rv = PK11_ChangePW(nss_slot, oldcred.cred, newcred.cred); in NSS_SetTokenPin()
|
/titanic_50/usr/src/lib/libkmf/plugins/kmf_pkcs11/common/ |
H A D | pkcs11_spi.c | 3746 KMF_CREDENTIAL *newcred; in KMFPK11_SetTokenPin() local 3757 newcred = kmf_get_attr_ptr(KMF_NEWPIN_ATTR, attrlist, numattr); in KMFPK11_SetTokenPin() 3758 if (newcred == NULL) in KMFPK11_SetTokenPin() 3808 (CK_BYTE *)newcred->cred, newcred->credlen); in KMFPK11_SetTokenPin()
|