Home
last modified time | relevance | path

Searched refs:cred (Results 1 – 25 of 430) sorted by relevance

12345678910>>...18

/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/mech/
H A Dacquire_cred_with_pw.c310 xfree(cred);
327 if (cred->princ)
329 xfree(cred);
344 cred->princ ? cred->princ : (krb5_principal)
351 xfree(cred);
359 if (!cred->princ)
366 xfree(cred);
389 xfree(cred);
419 xfree(cred);
436 if (cred->princ)
[all …]
H A Dacquire_cred.c534 if ((cred =
564 xfree(cred);
576 &(cred->princ), cred))
578 if (cred->princ)
596 cred->princ?(gss_name_t)cred->princ:desired_name,
597 &(cred->princ), cred))
599 if (cred->keytab)
601 if (cred->princ)
647 if (cred->princ)
681 xfree(cred);
[all …]
H A Dinq_cred.c87 krb5_gss_cred_id_t cred; local
140 if (cred->tgt_expire > 0) {
148 if (cred->princ &&
150 k5_mutex_unlock(&cred->lock);
161 (cred->prerfc_mech &&
165 (cred->rfc_mech &&
179 k5_mutex_unlock(&cred->lock);
199 *cred_usage = cred->usage;
234 krb5_gss_cred_id_t cred; local
256 if (cred &&
[all …]
H A Drel_cred.c34 krb5_gss_cred_id_t cred; local
55 cred = (krb5_gss_cred_id_t)*cred_handle;
57 k5_mutex_destroy(&cred->lock);
61 if (cred->ccache) {
78 if (cred->keytab)
83 if (cred->rcache)
87 if (cred->princ)
88 krb5_free_principal(context, cred->princ);
90 if (cred->req_enctypes)
91 free(cred->req_enctypes);
[all …]
H A Dadd_cred.c87 krb5_gss_cred_id_t cred; local
141 ((cred->usage == GSS_C_BOTH) &&
177 cred->princ)) {
223 if (cred->princ)
234 if (cred->keytab) {
279 if (cred->rcache) {
299 if (cred->ccache) {
360 cred = new_cred;
366 cred->prerfc_mech = 1;
368 cred->rfc_mech = 1;
[all …]
H A Dset_allowable_enctypes.c72 krb5_gss_cred_id_t cred; in gss_krb5int_set_allowable_enctypes() local
100 kerr = k5_mutex_lock(&cred->lock); in gss_krb5int_set_allowable_enctypes()
103 if (cred->req_enctypes) in gss_krb5int_set_allowable_enctypes()
104 free(cred->req_enctypes); in gss_krb5int_set_allowable_enctypes()
105 cred->req_enctypes = NULL; in gss_krb5int_set_allowable_enctypes()
106 k5_mutex_unlock(&cred->lock); in gss_krb5int_set_allowable_enctypes()
119 kerr = k5_mutex_lock(&cred->lock); in gss_krb5int_set_allowable_enctypes()
124 if (cred->req_enctypes) in gss_krb5int_set_allowable_enctypes()
125 free(cred->req_enctypes); in gss_krb5int_set_allowable_enctypes()
126 cred->req_enctypes = new_ktypes; in gss_krb5int_set_allowable_enctypes()
[all …]
/illumos-gate/usr/src/uts/common/fs/sockfs/
H A Dsockcommon.h50 struct cred *, int *);
54 struct cred *);
60 boolean_t, struct cred *);
62 struct cred *);
65 int, struct cred *);
69 struct cred *);
71 struct cred *);
121 struct cred *);
138 struct cred *);
144 struct cred *);
[all …]
H A Dsock_notsupp.c38 sock_upper_handle_t upper, struct cred *cr) in sock_accept_notsupp()
46 socklen_t namelen, struct cred *cr) in sock_bind_notsupp()
54 struct cred *cr) in sock_listen_notsupp()
63 struct cred *cr) in sock_connect_notsupp()
71 socklen_t *len, struct cred *cr) in sock_getsockname_notsupp()
79 socklen_t *addrlen, struct cred *cr) in sock_getpeername_notsupp()
103 struct msghdr *msg, struct cred *cr) in sock_send_notsupp()
111 struct nmsghdr *msg, struct cred *cr) in sock_senduio_notsupp()
119 struct nmsghdr *msg, struct cred *cr) in sock_recvuio_notsupp()
127 cred_t *cred) in sock_poll_notsupp() argument
[all …]
/illumos-gate/usr/src/lib/libnsl/rpc/
H A Dsvcauth_des.c136 struct authdes_cred *cred; in __svcauth_des() local
259 sid = cred->adc_nickname; in __svcauth_des()
622 invalidate(char *cred) in invalidate() argument
624 if (cred == NULL) in invalidate()
645 struct bsdcred *cred; in authdes_getucred() local
655 if (cred == NULL) { in authdes_getucred()
663 if (cred == NULL) { in authdes_getucred()
669 cred->grouplen = INVALID; in authdes_getucred()
684 *uid = cred->uid = i_uid; in authdes_getucred()
704 *uid = cred->uid; in authdes_getucred()
[all …]
H A Dauthdes_prot.c50 xdr_authdes_cred(XDR *xdrs, struct authdes_cred *cred) in xdr_authdes_cred() argument
55 if (!xdr_enum(xdrs, (enum_t *)&cred->adc_namekind)) in xdr_authdes_cred()
57 switch (cred->adc_namekind) { in xdr_authdes_cred()
59 if (!xdr_string(xdrs, &cred->adc_fullname.name, in xdr_authdes_cred()
62 if (!xdr_opaque(xdrs, (caddr_t)&cred->adc_fullname.key, in xdr_authdes_cred()
65 return (xdr_opaque(xdrs, (caddr_t)&cred->adc_fullname.window, in xdr_authdes_cred()
66 (uint_t)sizeof (cred->adc_fullname.window))); in xdr_authdes_cred()
68 return (xdr_opaque(xdrs, (caddr_t)&cred->adc_nickname, in xdr_authdes_cred()
69 (uint_t)sizeof (cred->adc_nickname))); in xdr_authdes_cred()
/illumos-gate/usr/src/uts/common/sys/
H A Dksocket.h89 struct cred *);
94 struct cred *);
96 struct cred *);
100 struct cred *);
104 struct cred *);
108 struct cred *);
111 struct cred *);
113 struct cred *);
115 struct cred *);
117 struct cred *);
[all …]
/illumos-gate/usr/src/uts/common/io/
H A Dcons.c277 cnopen(dev_t *dev, int flag, int state, struct cred *cred) in cnopen() argument
283 ASSERT(cred != NULL); in cnopen()
350 cnclose(dev_t dev __unused, int flag, int state, struct cred *cred) in cnclose() argument
377 cnread(dev_t dev __unused, struct uio *uio, struct cred *cred) in cnread() argument
398 return (strread(rconsvp, uio, cred)); in cnread()
400 return (cdev_read(rconsdev, uio, cred)); in cnread()
404 cnwrite(dev_t dev __unused, struct uio *uio, struct cred *cred) in cnwrite() argument
437 return (strwrite(rconsvp, uio, cred)); in cnwrite()
444 struct cred *cred, int *rvalp) in cnprivateioc() argument
496 cnioctl(dev_t dev, int cmd, intptr_t arg, int flag, struct cred *cred, in cnioctl() argument
[all …]
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/lw8/fruaccess/
H A Dlibfruaccess.c54 door_cred_t *cred);
68 door_cred_t *cred);
206 door_cred_t *cred) in fru_get_segments() argument
232 if (cred->dc_euid != 0) { in fru_add_segment()
256 door_cred_t *cred) in fru_delete_segment() argument
262 if (cred->dc_euid != 0) { in fru_delete_segment()
282 door_cred_t *cred) in fru_read_segment() argument
342 door_cred_t *cred) in fru_get_packets() argument
362 door_cred_t *cred) in fru_get_payload() argument
387 if (cred->dc_euid != 0) { in fru_update_payload()
[all …]
/illumos-gate/usr/src/uts/common/fs/dev/
H A Dsdev_vnops.c351 offset_t offset, struct cred *cred, caller_context_t *ct) in sdev_close() argument
374 sdev_read(struct vnode *vp, struct uio *uio, int ioflag, struct cred *cred, in sdev_read() argument
433 struct cred *cred, int *rvalp, caller_context_t *ct) in sdev_ioctl() argument
483 struct cred *cred, caller_context_t *ctp) in sdev_setattr() argument
619 struct pathname *pnp, int flags, struct vnode *rdir, struct cred *cred, in sdev_lookup() argument
640 int mode, struct vnode **vpp, struct cred *cred, int flag, in sdev_create() argument
793 sdev_remove(struct vnode *dvp, char *nm, struct cred *cred, in sdev_remove() argument
908 struct cred *cred, caller_context_t *ct, int flags) in sdev_rename() argument
1158 char *tnm, struct cred *cred, caller_context_t *ct, int flags) in sdev_symlink() argument
1415 sdev_readlink(struct vnode *vp, struct uio *uiop, struct cred *cred, in sdev_readlink() argument
[all …]
H A Dsdev_vtops.c185 struct pathname *pnp, int flags, struct vnode *rdir, struct cred *cred, in devvt_lookup() argument
202 error = devname_lookup_func(sdvp, nm, vpp, cred, in devvt_lookup()
230 devvt_create_snode(struct sdev_node *ddv, char *nm, struct cred *cred, int type) in devvt_create_snode() argument
262 NULL, cred, SDEV_READY); in devvt_create_snode()
270 (void *)link, cred, SDEV_READY); in devvt_create_snode()
354 devvt_cleandir(struct vnode *dvp, struct cred *cred) in devvt_cleandir() argument
394 devvt_create_snode(sdvp, nm, cred, SDEV_VATTR); in devvt_cleandir()
428 devvt_readdir(struct vnode *dvp, struct uio *uiop, struct cred *cred, in devvt_readdir() argument
432 devvt_cleandir(dvp, cred); in devvt_readdir()
447 int mode, struct vnode **vpp, struct cred *cred, int flag, in devvt_create() argument
[all …]
/illumos-gate/usr/src/tools/smatch/src/smatch_scripts/implicit_dependencies/with_structs/
H A Dimplicit_dependencies_verbose.pretty15662 'reason': set([('cred', 'user'), ('cred', 'user_ns')])},
15666 'reason': set([('cred', 'user'), ('cred', 'user_ns')])},
15668 'reason': set([('cred', 'user'), ('cred', 'user_ns')])},
15674 'reason': set([('cred', 'user'), ('cred', 'user_ns')])},
15680 'reason': set([('cred', 'user'), ('cred', 'user_ns')])},
15685 'reason': set([('cred', 'user'), ('cred', 'user_ns')])},
15692 'reason': set([('cred', 'user'), ('cred', 'user_ns')])},
15694 'reason': set([('cred', 'user'), ('cred', 'user_ns')])},
15706 'reason': set([('cred', 'user'), ('cred', 'user_ns')])},
15708 'reason': set([('cred', 'user'), ('cred', 'user_ns')])},
[all …]
H A Dimplicit_dependencies_verbose20285 'reason': set([('cred', 'user'), ('cred', 'user_ns')])},
20289 'reason': set([('cred', 'user'), ('cred', 'user_ns')])},
20291 'reason': set([('cred', 'user'), ('cred', 'user_ns')])},
20297 'reason': set([('cred', 'user'), ('cred', 'user_ns')])},
20303 'reason': set([('cred', 'user'), ('cred', 'user_ns')])},
20308 'reason': set([('cred', 'user'), ('cred', 'user_ns')])},
20315 'reason': set([('cred', 'user'), ('cred', 'user_ns')])},
20317 'reason': set([('cred', 'user'), ('cred', 'user_ns')])},
20329 'reason': set([('cred', 'user'), ('cred', 'user_ns')])},
20331 'reason': set([('cred', 'user'), ('cred', 'user_ns')])},
[all …]
/illumos-gate/usr/src/uts/common/inet/iptun/
H A Diptun_ctl.c39 iptun_ioc_create(void *karg, intptr_t arg, int mode, cred_t *cred, int *rvalp) in iptun_ioc_create() argument
41 return (iptun_create(karg, cred)); in iptun_ioc_create()
46 iptun_ioc_delete(void *karg, intptr_t arg, int mode, cred_t *cred, int *rvalp) in iptun_ioc_delete() argument
48 return (iptun_delete(*(datalink_id_t *)karg, cred)); in iptun_ioc_delete()
55 return (iptun_modify(karg, cred)); in iptun_ioc_modify()
60 iptun_ioc_info(void *karg, intptr_t arg, int mode, cred_t *cred, int *rvalp) in iptun_ioc_info() argument
62 return (iptun_info(karg, cred)); in iptun_ioc_info()
67 iptun_ioc_set_6to4relay(void *karg, intptr_t arg, int mode, cred_t *cred, in iptun_ioc_set_6to4relay() argument
71 netstack_t *ns = netstack_find_by_cred(cred); in iptun_ioc_set_6to4relay()
81 iptun_ioc_get_6to4relay(void *karg, intptr_t arg, int mode, cred_t *cred, in iptun_ioc_get_6to4relay() argument
[all …]
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/mech/
H A Dval_cred.c40 krb5_gss_cred_id_t cred; in krb5_gss_validate_cred_1() local
49 cred = (krb5_gss_cred_id_t) cred_handle; in krb5_gss_validate_cred_1()
51 code = k5_mutex_lock(&cred->lock); in krb5_gss_validate_cred_1()
57 if (cred->ccache) { in krb5_gss_validate_cred_1()
58 if ((code = krb5_cc_get_principal(context, cred->ccache, &princ))) { in krb5_gss_validate_cred_1()
59 k5_mutex_unlock(&cred->lock); in krb5_gss_validate_cred_1()
63 if (!krb5_principal_compare(context, princ, cred->princ)) { in krb5_gss_validate_cred_1()
64 k5_mutex_unlock(&cred->lock); in krb5_gss_validate_cred_1()
91 krb5_gss_cred_id_t cred = (krb5_gss_cred_id_t) cred_handle; local
92 k5_mutex_assert_locked(&cred->lock);
[all …]
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/lib/fruaccess/
H A Dfru_access.h86 int max_sections, door_cred_t *cred);
91 section_hdl_t *newsection, door_cred_t *cred);
93 door_cred_t *cred);
95 door_cred_t *cred);
97 segment_hdl_t *newsegment, door_cred_t *cred);
98 int fru_get_num_packets(segment_hdl_t segment, door_cred_t *cred);
100 int max_packets, door_cred_t *cred);
102 size_t nbytes, door_cred_t *cred);
104 packet_hdl_t *newpacket, door_cred_t *cred);
107 door_cred_t *cred);
[all …]
/illumos-gate/usr/src/lib/libfru/libfruraw/
H A Dfru_access.h84 int max_sections, door_cred_t *cred);
89 section_hdl_t *newsection, door_cred_t *cred);
91 door_cred_t *cred);
93 door_cred_t *cred);
95 segment_hdl_t *newsegment, door_cred_t *cred);
96 int fru_get_num_packets(segment_hdl_t segment, door_cred_t *cred);
98 int max_packets, door_cred_t *cred);
100 size_t nbytes, door_cred_t *cred);
102 packet_hdl_t *newpacket, door_cred_t *cred);
105 door_cred_t *cred);
[all …]
/illumos-gate/usr/src/uts/common/rpc/sec/
H A Dsvcauthdes.c141 struct authdes_cred *cred; in _svcauth_des() local
175 switch (cred->adc_namekind) { in _svcauth_des()
220 cred->adc_nickname); in _svcauth_des()
364 cred->adc_namekind = ADN_FULLNAME; in _svcauth_des()
435 struct bsdcred *cred; in kauthdes_getucred() local
449 if (!cred->valid) { in kauthdes_getucred()
474 cred->uid = i_uid; in kauthdes_getucred()
475 cred->gid = i_gid; in kauthdes_getucred()
477 cred->valid = 1; in kauthdes_getucred()
483 if (crsetugid(cr, cred->uid, cred->gid) != 0 || in kauthdes_getucred()
[all …]
H A Dauthdesprt.c51 xdr_authdes_cred(XDR *xdrs, struct authdes_cred *cred) in xdr_authdes_cred() argument
56 ATTEMPT(xdr_enum(xdrs, (enum_t *)&cred->adc_namekind)); in xdr_authdes_cred()
57 switch (cred->adc_namekind) { in xdr_authdes_cred()
59 ATTEMPT(xdr_string(xdrs, &cred->adc_fullname.name, in xdr_authdes_cred()
61 ATTEMPT(xdr_opaque(xdrs, (caddr_t)&cred->adc_fullname.key, in xdr_authdes_cred()
63 ATTEMPT(xdr_opaque(xdrs, (caddr_t)&cred->adc_fullname.window, in xdr_authdes_cred()
64 sizeof (cred->adc_fullname.window))); in xdr_authdes_cred()
67 ATTEMPT(xdr_int(xdrs, (int *)&cred->adc_nickname)); in xdr_authdes_cred()
/illumos-gate/usr/src/cmd/krb5/klist/
H A Dklist.c540 flags_string(cred) in flags_string() argument
541 register krb5_creds *cred; in flags_string()
593 show_credential(cred) in show_credential() argument
594 register krb5_creds * cred; in show_credential()
614 if (!cred->times.starttime)
615 cred->times.starttime = cred->times.authtime;
629 if (cred->times.renew_till) {
645 flags = flags_string(cred);
687 if (!cred->addresses || !cred->addresses[0]) {
693 one_addr(cred->addresses[0]);
[all …]
/illumos-gate/usr/src/lib/gss_mechs/mech_dh/backend/mech/
H A Dcred.c70 if (minor == 0 || cred == 0) in __dh_gss_acquire_cred()
79 *cred = GSS_C_NO_CREDENTIAL; in __dh_gss_acquire_cred()
143 *cred = (gss_cred_id_t)dh_cred; in __dh_gss_acquire_cred()
174 gss_cred_id_t cred, /* cred of interest */ in __dh_gss_inquire_cred() argument
181 dh_cred_id_t crid = (dh_cred_id_t)cred; in __dh_gss_inquire_cred()
194 if (cred == GSS_C_NO_CREDENTIAL) { in __dh_gss_inquire_cred()
293 gss_cred_id_t *cred /* The cred to free */) in __dh_gss_release_cred() argument
296 dh_cred_id_t dh_cred = (dh_cred_id_t)*cred; in __dh_gss_release_cred()
299 if (minor == 0 || cred == 0) in __dh_gss_release_cred()
303 if (*cred == GSS_C_NO_CREDENTIAL) in __dh_gss_release_cred()
[all …]

12345678910>>...18