Home
last modified time | relevance | path

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

12345678910>>...18

/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/mech/
H A Dacquire_cred_with_pw.c95 acquire_accept_cred_with_pw(context, minor_status, desired_name, password, cred) in acquire_accept_cred_with_pw() argument
100 krb5_gss_cred_id_rec *cred;
110 acquire_init_cred_with_pw(context, minor_status, desired_name, password, cred) in acquire_init_cred_with_pw() argument
115 krb5_gss_cred_id_rec *cred;
123 cred->ccache = NULL;
186 cred->ccache = ccache2;
222 krb5_gss_cred_id_t cred; local
289 if ((cred = (krb5_gss_cred_id_t)
295 memset(cred, 0, sizeof (krb5_gss_cred_id_rec));
297 cred->usage = cred_usage;
[all …]
H A Dacquire_cred.c146 acquire_accept_cred(context, minor_status, desired_name, output_princ, cred) in acquire_accept_cred() argument
151 krb5_gss_cred_id_rec *cred;
159 cred->keytab = NULL;
212 &cred->rcache))) {
221 cred->keytab = kt;
234 acquire_init_cred(context, minor_status, desired_name, output_princ, cred) in acquire_init_cred() argument
239 krb5_gss_cred_id_rec *cred;
250 cred->ccache = NULL;
401 cred->tgt_expire = creds.times.endtime;
409 cred->tgt_expire = creds.times.endtime;
[all …]
H A Dinq_cred.c87 krb5_gss_cred_id_t cred; local
112 if ((major = kg_get_defcred(minor_status, (gss_cred_id_t *)&cred)) &&
125 cred = (krb5_gss_cred_id_t) cred_handle;
134 code = k5_mutex_lock(&cred->lock);
140 if (cred->tgt_expire > 0) {
141 if ((lifetime = cred->tgt_expire - now) < 0)
148 if (cred->princ &&
149 (code = krb5_copy_principal(context, cred->princ, &ret_name))) {
150 k5_mutex_unlock(&cred->lock);
161 (cred->prerfc_mech &&
[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) {
71 if (strcmp("MEMORY", krb5_cc_get_type(context, cred->ccache)) == 0)
72 code1 = krb5_cc_destroy(context, cred->ccache);
74 code1 = krb5_cc_close(context, cred->ccache);
78 if (cred->keytab)
79 code2 = krb5_kt_close(context, cred->keytab);
83 if (cred->rcache)
[all …]
H A Dadd_cred.c87 krb5_gss_cred_id_t cred; local
134 cred = (krb5_gss_cred_id_t) input_cred_handle;
135 k5_mutex_assert_locked(&cred->lock);
140 if (!((cred->usage == cred_usage) ||
141 ((cred->usage == GSS_C_BOTH) &&
150 if ((g_OID_equal(desired_mech, gss_mech_krb5_old) && cred->prerfc_mech) ||
151 (g_OID_equal(desired_mech, gss_mech_krb5) && cred->rfc_mech)) {
177 cred->princ)) {
182 int kret1 = krb5_unparse_name(context, cred->princ, &s_princ);
219 new_cred->prerfc_mech = cred->prerfc_mech;
[all …]
H A Dset_allowable_enctypes.c70 krb5_gss_cred_id_t cred; in gss_krb5int_set_allowable_enctypes() local
88 cred = (krb5_gss_cred_id_t) cred_handle; in gss_krb5int_set_allowable_enctypes()
98 kerr = k5_mutex_lock(&cred->lock); in gss_krb5int_set_allowable_enctypes()
101 if (cred->req_enctypes) in gss_krb5int_set_allowable_enctypes()
102 free(cred->req_enctypes); in gss_krb5int_set_allowable_enctypes()
103 cred->req_enctypes = NULL; in gss_krb5int_set_allowable_enctypes()
104 k5_mutex_unlock(&cred->lock); in gss_krb5int_set_allowable_enctypes()
117 kerr = k5_mutex_lock(&cred->lock); in gss_krb5int_set_allowable_enctypes()
122 if (cred->req_enctypes) in gss_krb5int_set_allowable_enctypes()
123 free(cred->req_enctypes); 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 *);
55 extern int socket_accept(struct sonode *, int, struct cred *, struct sonode **);
56 extern int socket_listen(struct sonode *, int, struct cred *);
58 socklen_t, int, int, struct cred *);
60 boolean_t, struct cred *);
62 struct cred *);
63 extern int socket_shutdown(struct sonode *, int, struct cred *);
65 int, struct cred *);
67 socklen_t, 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()
87 int option_name, void *optval, socklen_t *optlenp, struct cred *cr) in sock_getsockopt_notsupp()
95 int option_name, const void *optval, socklen_t optlen, struct cred *cr) in sock_setsockopt_notsupp()
103 struct msghdr *msg, struct cred *cr) in sock_send_notsupp()
111 struct nmsghdr *msg, struct cred *cr) in sock_senduio_notsupp()
[all …]
/illumos-gate/usr/src/lib/libnsl/rpc/
H A Dsvcauth_des.c136 struct authdes_cred *cred; in __svcauth_des() local
163 cred = (struct authdes_cred *)&area->area_cred; in __svcauth_des()
172 cred->adc_namekind = IXDR_GET_ENUM(ixdr, enum authdes_namekind); in __svcauth_des()
173 switch (cred->adc_namekind) { in __svcauth_des()
178 cred->adc_fullname.name = area->area_netname; in __svcauth_des()
179 (void) memcpy(cred->adc_fullname.name, ixdr, (uint_t)namelen); in __svcauth_des()
180 cred->adc_fullname.name[namelen] = 0; in __svcauth_des()
182 cred->adc_fullname.key.key.high = (uint32_t)*ixdr++; in __svcauth_des()
183 cred->adc_fullname.key.key.low = (uint32_t)*ixdr++; in __svcauth_des()
184 cred->adc_fullname.window = (uint32_t)*ixdr++; in __svcauth_des()
[all …]
H A Dauthdes_prot.c48 xdr_authdes_cred(XDR *xdrs, struct authdes_cred *cred) in xdr_authdes_cred() argument
53 if (!xdr_enum(xdrs, (enum_t *)&cred->adc_namekind)) in xdr_authdes_cred()
55 switch (cred->adc_namekind) { in xdr_authdes_cred()
57 if (!xdr_string(xdrs, &cred->adc_fullname.name, in xdr_authdes_cred()
60 if (!xdr_opaque(xdrs, (caddr_t)&cred->adc_fullname.key, in xdr_authdes_cred()
63 return (xdr_opaque(xdrs, (caddr_t)&cred->adc_fullname.window, in xdr_authdes_cred()
64 (uint_t)sizeof (cred->adc_fullname.window))); in xdr_authdes_cred()
66 return (xdr_opaque(xdrs, (caddr_t)&cred->adc_nickname, in xdr_authdes_cred()
67 (uint_t)sizeof (cred->adc_nickname))); in xdr_authdes_cred()
/illumos-gate/usr/src/uts/common/sys/
H A Dksocket.h87 extern int ksocket_socket(ksocket_t *, int, int, int, int, struct cred *);
89 struct cred *);
90 extern int ksocket_listen(ksocket_t, int, struct cred *);
92 ksocket_t *, struct cred *);
94 struct cred *);
96 struct cred *);
98 struct sockaddr *, socklen_t, size_t *, struct cred *);
100 struct cred *);
102 struct msgb **, struct cred *);
104 struct cred *);
[all …]
/illumos-gate/usr/src/uts/common/io/
H A Dcons.c73 static int cnopen(dev_t *, int, int, struct cred *);
74 static int cnclose(dev_t, int, int, struct cred *);
75 static int cnread(dev_t, struct uio *, struct cred *);
76 static int cnwrite(dev_t, struct uio *, struct cred *);
77 static int cnioctl(dev_t, int, intptr_t, int, struct cred *, int *);
277 cnopen(dev_t *dev, int flag, int state, struct cred *cred) in cnopen() argument
283 ASSERT(cred != NULL); in cnopen()
292 if (VOP_OPEN(&vsconsvp, FREAD | FWRITE, cred, NULL) != 0) { in cnopen()
325 if ((err = VOP_OPEN(&vp, flag, cred, NULL)) != 0) in cnopen()
338 (void) VOP_CLOSE(vp, flag, 1, (offset_t)0, cred, NULL); in cnopen()
[all …]
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/lw8/fruaccess/
H A Dlibfruaccess.c54 door_cred_t *cred);
56 int max_sections, door_cred_t *cred);
57 int fru_get_num_segments(section_hdl_t section, door_cred_t *cred);
59 int max_segments, door_cred_t *cred);
61 section_hdl_t *newsection, door_cred_t *cred);
63 section_hdl_t *newsection, door_cred_t *cred);
65 size_t nbytes, door_cred_t *cred);
68 door_cred_t *cred);
69 int fru_get_num_packets(segment_hdl_t segment, door_cred_t *cred);
71 int max_packets, door_cred_t *cred);
[all …]
/illumos-gate/usr/src/tools/smatch/src/smatch_scripts/implicit_dependencies/with_structs/
H A Dimplicit_dependencies_verbose.pretty284 'capset': [{'call': 'keyctl', 'reason': set([('task_struct', 'cred')])},
286 'reason': set([('task_struct', 'cred')])},
287 {'call': 'msgrcv', 'reason': set([('task_struct', 'cred')])},
288 {'call': 'kill', 'reason': set([('task_struct', 'cred')])},
290 'reason': set([('task_struct', 'cred')])},
292 'reason': set([('task_struct', 'cred')])},
293 {'call': 'ioprio_set', 'reason': set([('task_struct', 'cred')])},
294 {'call': 'getppid', 'reason': set([('task_struct', 'cred')])},
296 'reason': set([('task_struct', 'cred')])},
297 {'call': 'capget', 'reason': set([('task_struct', 'cred')])},
[all …]
H A Dimplicit_dependencies_verbose516 'capset': [{'call': 'keyctl', 'reason': set([('task_struct', 'cred')])},
518 'reason': set([('task_struct', 'cred')])},
519 {'call': 'msgrcv', 'reason': set([('task_struct', 'cred')])},
520 {'call': 'kill', 'reason': set([('task_struct', 'cred')])},
522 'reason': set([('task_struct', 'cred')])},
524 'reason': set([('task_struct', 'cred')])},
525 {'call': 'ioprio_set', 'reason': set([('task_struct', 'cred')])},
526 {'call': 'getppid', 'reason': set([('task_struct', 'cred')])},
528 'reason': set([('task_struct', 'cred')])},
529 {'call': 'capget', 'reason': set([('task_struct', 'cred')])},
[all …]
/illumos-gate/usr/src/uts/common/fs/dev/
H A Dsdev_vnops.c319 sdev_open(struct vnode **vpp, int flag, struct cred *cred, caller_context_t *ct) in sdev_open() argument
343 error = VOP_OPEN(&(dv->sdev_attrvp), flag, cred, ct); in sdev_open()
351 offset_t offset, struct cred *cred, caller_context_t *ct) in sdev_close() argument
369 return (VOP_CLOSE(dv->sdev_attrvp, flag, count, offset, cred, ct)); in sdev_close()
374 sdev_read(struct vnode *vp, struct uio *uio, int ioflag, struct cred *cred, in sdev_read() argument
394 error = VOP_READ(dv->sdev_attrvp, uio, ioflag, cred, ct); in sdev_read()
401 sdev_write(struct vnode *vp, struct uio *uio, int ioflag, struct cred *cred, in sdev_write() argument
421 error = VOP_WRITE(dv->sdev_attrvp, uio, ioflag, cred, ct); in sdev_write()
433 struct cred *cred, int *rvalp, caller_context_t *ct) in sdev_ioctl() argument
445 return (VOP_IOCTL(dv->sdev_attrvp, cmd, arg, flag, cred, rvalp, ct)); in sdev_ioctl()
[all …]
H A Dsdev_vtops.c152 void **arg, cred_t *cred, void *whatever, char *whichever) in devvt_create_rvp() argument
185 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
249 error = sdev_mknode(ddv, nm, &sdv, NULL, NULL, NULL, cred, SDEV_INIT); in devvt_create_snode()
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()
415 devvt_create_snode(sdvp, DEVVT_ACTIVE_NAME, cred, SDEV_VLINK); in devvt_cleandir()
[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()
53 iptun_ioc_modify(void *karg, intptr_t arg, int mode, cred_t *cred, int *rvalp) in iptun_ioc_modify() argument
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()
[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/uts/common/rpc/sec/
H A Dsvcauthdes.c141 struct authdes_cred *cred; in _svcauth_des() local
167 cred = (struct authdes_cred *)&area->area_cred; in _svcauth_des()
174 cred->adc_namekind = IXDR_GET_ENUM(ixdr, enum authdes_namekind); in _svcauth_des()
175 switch (cred->adc_namekind) { in _svcauth_des()
180 cred->adc_fullname.name = area->area_netname; in _svcauth_des()
181 bcopy(ixdr, cred->adc_fullname.name, namelen); in _svcauth_des()
182 cred->adc_fullname.name[namelen] = 0; in _svcauth_des()
184 cred->adc_fullname.key.key.high = (uint32_t)*ixdr++; in _svcauth_des()
185 cred->adc_fullname.key.key.low = (uint32_t)*ixdr++; in _svcauth_des()
186 cred->adc_fullname.window = (uint32_t)*ixdr++; in _svcauth_des()
[all …]
H A Dauthdesprt.c49 xdr_authdes_cred(XDR *xdrs, struct authdes_cred *cred) in xdr_authdes_cred() argument
54 ATTEMPT(xdr_enum(xdrs, (enum_t *)&cred->adc_namekind)); in xdr_authdes_cred()
55 switch (cred->adc_namekind) { in xdr_authdes_cred()
57 ATTEMPT(xdr_string(xdrs, &cred->adc_fullname.name, in xdr_authdes_cred()
59 ATTEMPT(xdr_opaque(xdrs, (caddr_t)&cred->adc_fullname.key, in xdr_authdes_cred()
61 ATTEMPT(xdr_opaque(xdrs, (caddr_t)&cred->adc_fullname.window, in xdr_authdes_cred()
62 sizeof (cred->adc_fullname.window))); in xdr_authdes_cred()
65 ATTEMPT(xdr_int(xdrs, (int *)&cred->adc_nickname)); in xdr_authdes_cred()
/illumos-gate/usr/src/lib/libfru/libfruraw/
H A Dfru_access.h82 int fru_get_num_sections(container_hdl_t container, door_cred_t *cred);
84 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);
[all …]
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/lib/fruaccess/
H A Dfru_access.h82 int fru_get_num_sections(container_hdl_t container, door_cred_t *cred);
84 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);
[all …]
/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()
546 if (cred->ticket_flags & TKT_FLG_FORWARDABLE)
548 if (cred->ticket_flags & TKT_FLG_FORWARDED)
550 if (cred->ticket_flags & TKT_FLG_PROXIABLE)
552 if (cred->ticket_flags & TKT_FLG_PROXY)
554 if (cred->ticket_flags & TKT_FLG_MAY_POSTDATE)
556 if (cred->ticket_flags & TKT_FLG_POSTDATED)
558 if (cred->ticket_flags & TKT_FLG_INVALID)
560 if (cred->ticket_flags & TKT_FLG_RENEWABLE)
[all …]
/illumos-gate/usr/src/lib/gss_mechs/mech_dh/backend/mech/
H A Dcred.c58 gss_cred_id_t *cred, /* The return credential */ in __dh_gss_acquire_cred() argument
68 if (minor == 0 || cred == 0) in __dh_gss_acquire_cred()
77 *cred = GSS_C_NO_CREDENTIAL; in __dh_gss_acquire_cred()
141 *cred = (gss_cred_id_t)dh_cred; in __dh_gss_acquire_cred()
172 gss_cred_id_t cred, /* cred of interest */ in __dh_gss_inquire_cred() argument
179 dh_cred_id_t crid = (dh_cred_id_t)cred; in __dh_gss_inquire_cred()
192 if (cred == GSS_C_NO_CREDENTIAL) { in __dh_gss_inquire_cred()
245 gss_cred_id_t cred, /* Cred to iquire about */ in __dh_gss_inquire_cred_by_mech() argument
265 major = __dh_gss_inquire_cred(ctx, minor, cred, name, in __dh_gss_inquire_cred_by_mech()
291 gss_cred_id_t *cred /* The cred to free */) in __dh_gss_release_cred() argument
[all …]

12345678910>>...18