/freebsd/crypto/heimdal/lib/gssapi/mech/ |
H A D | gss_add_cred_with_password.c | 48 struct _gss_cred *new_cred; in gss_add_cred_with_password() local 68 new_cred = calloc(1, sizeof(struct _gss_cred)); in gss_add_cred_with_password() 69 if (new_cred == NULL) { in gss_add_cred_with_password() 73 HEIM_SLIST_INIT(&new_cred->gc_mc); in gss_add_cred_with_password() 87 gss_release_cred(&junk, (gss_cred_id_t *)&new_cred); in gss_add_cred_with_password() 91 HEIM_SLIST_INSERT_HEAD(&new_cred->gc_mc, copy_mc, gmc_link); in gss_add_cred_with_password() 104 gss_release_cred(&junk, (gss_cred_id_t *)&new_cred); in gss_add_cred_with_password() 121 gss_release_cred(&junk, (gss_cred_id_t *)&new_cred); in gss_add_cred_with_password() 125 HEIM_SLIST_INSERT_HEAD(&new_cred->gc_mc, mc, gmc_link); in gss_add_cred_with_password() 131 (gss_cred_id_t)new_cred, in gss_add_cred_with_password() [all …]
|
H A D | gss_acquire_cred_with_password.c | 61 struct _gss_cred *new_cred; in gss_acquire_cred_with_password() local 63 new_cred = calloc(1, sizeof(*new_cred)); in gss_acquire_cred_with_password() 64 if (new_cred == NULL) { in gss_acquire_cred_with_password() 68 HEIM_SLIST_INIT(&new_cred->gc_mc); in gss_acquire_cred_with_password() 88 HEIM_SLIST_INSERT_HEAD(&new_cred->gc_mc, mc, gmc_link); in gss_acquire_cred_with_password() 94 if (!HEIM_SLIST_FIRST(&new_cred->gc_mc)) { in gss_acquire_cred_with_password() 95 free(new_cred); in gss_acquire_cred_with_password() 100 *output_cred_handle = (gss_cred_id_t)new_cred; in gss_acquire_cred_with_password()
|
H A D | gss_add_cred.c | 89 struct _gss_cred *new_cred; in gss_add_cred() local 104 new_cred = malloc(sizeof(struct _gss_cred)); in gss_add_cred() 105 if (!new_cred) { in gss_add_cred() 109 HEIM_SLIST_INIT(&new_cred->gc_mc); in gss_add_cred() 125 release_cred = (gss_cred_id_t)new_cred; in gss_add_cred() 130 HEIM_SLIST_INSERT_HEAD(&new_cred->gc_mc, copy_mc, gmc_link); in gss_add_cred() 143 free(new_cred); in gss_add_cred() 154 release_cred = (gss_cred_id_t)new_cred; in gss_add_cred() 176 release_cred = (gss_cred_id_t)new_cred; in gss_add_cred() 181 HEIM_SLIST_INSERT_HEAD(&new_cred->gc_mc, mc, gmc_link); in gss_add_cred() [all …]
|
/freebsd/lib/libgssapi/ |
H A D | gss_add_cred.c | 96 struct _gss_cred *new_cred; in gss_add_cred() local 111 new_cred = malloc(sizeof(struct _gss_cred)); in gss_add_cred() 112 if (!new_cred) { in gss_add_cred() 116 SLIST_INIT(&new_cred->gc_mc); in gss_add_cred() 132 release_cred = (gss_cred_id_t) new_cred; in gss_add_cred() 137 SLIST_INSERT_HEAD(&new_cred->gc_mc, copy_mc, gmc_link); in gss_add_cred() 150 free(new_cred); in gss_add_cred() 161 release_cred = (gss_cred_id_t) new_cred; in gss_add_cred() 183 release_cred = (gss_cred_id_t) new_cred; in gss_add_cred() 188 SLIST_INSERT_HEAD(&new_cred->gc_mc, mc, gmc_link); in gss_add_cred() [all …]
|
/freebsd/sys/security/mac_do/ |
H A D | mac_do.c | 1642 const struct ucred *const old_cred, const struct ucred *const new_cred) in rule_grant_supplementary_groups() argument 1645 const gid_t *const new_groups = new_cred->cr_groups; in rule_grant_supplementary_groups() 1647 const int new_ngroups = new_cred->cr_ngroups; in rule_grant_supplementary_groups() 1816 const struct ucred *const old_cred, const struct ucred *const new_cred) in rule_grant_primary_groups() argument 1824 error = rule_grant_primary_group(rule, old_cred, new_cred->cr_gid); in rule_grant_primary_groups() 1827 error = rule_grant_primary_group(rule, old_cred, new_cred->cr_rgid); in rule_grant_primary_groups() 1830 error = rule_grant_primary_group(rule, old_cred, new_cred->cr_svgid); in rule_grant_primary_groups() 1871 const struct ucred *const old_cred, const struct ucred *const new_cred) in rule_grant_users() argument 1879 error = rule_grant_user(rule, old_cred, new_cred->cr_uid); in rule_grant_users() 1882 error = rule_grant_user(rule, old_cred, new_cred->cr_ruid); in rule_grant_users() [all …]
|
/freebsd/sys/security/mac/ |
H A D | mac_cred.c | 238 struct ucred *new_cred) in mac_cred_check_setcred() argument 242 MAC_POLICY_CHECK_NOSLEEP(cred_check_setcred, flags, old_cred, new_cred); in mac_cred_check_setcred() 243 MAC_CHECK_PROBE3(cred_check_setcred, error, flags, old_cred, new_cred); in mac_cred_check_setcred()
|
H A D | mac_framework.h | 120 struct ucred *new_cred);
|
H A D | mac_policy.h | 149 const struct ucred *old_cred, struct ucred *new_cred);
|
/freebsd/sys/kern/ |
H A D | kern_prot.c | 664 struct ucred *new_cred, *old_cred, *to_free_cred; in kern_setcred() local 746 new_cred = crget(); in kern_setcred() 747 to_free_cred = new_cred; in kern_setcred() 749 crextend(new_cred, wcred->sc_supp_groups_nb + 1); in kern_setcred() 762 old_cred = crcopysafe(p, new_cred); in kern_setcred() 768 change_euid(new_cred, uip); in kern_setcred() 770 change_ruid(new_cred, ruip); in kern_setcred() 772 change_svuid(new_cred, wcred->sc_svuid); in kern_setcred() 782 new_cred->cr_gid; in kern_setcred() 783 crsetgroups_internal(new_cred, wcred->sc_supp_groups_nb + 1, in kern_setcred() [all …]
|
/freebsd/include/rpc/ |
H A D | auth_unix.h | 78 struct opaque_auth new_cred; member
|
/freebsd/sys/security/mac_stub/ |
H A D | mac_stub.c | 232 struct ucred *new_cred) in stub_cred_check_setcred() argument
|
/freebsd/sys/security/mac_test/ |
H A D | mac_test.c | 270 struct ucred *new_cred) in test_cred_check_setcred() argument 273 LABEL_CHECK(new_cred->cr_label, MAGIC_CRED); in test_cred_check_setcred()
|