Home
last modified time | relevance | path

Searched refs:credp (Results 1 – 25 of 295) sorted by relevance

12345678910>>...12

/titanic_44/usr/src/uts/common/io/
H A Dtem_safe.c123 cred_t *credp, enum called_from called_from);
128 cred_t *credp, enum called_from called_from);
135 cred_t *credp, enum called_from called_from);
215 cred_t *credp, in tem_safe_check_first_time() argument
234 tem_safe_text_cursor(tem, VIS_GET_CURSOR, credp, called_from); in tem_safe_check_first_time()
283 cred_t *credp, in tem_safe_terminal_emulate() argument
292 VIS_HIDE_CURSOR, credp, called_from); in tem_safe_terminal_emulate()
295 tem_safe_parse(tem, *buf, credp, called_from); in tem_safe_terminal_emulate()
300 tem_safe_send_data(tem, credp, called_from); in tem_safe_terminal_emulate()
304 VIS_DISPLAY_CURSOR, credp, called_from); in tem_safe_terminal_emulate()
[all …]
H A Dtem.c188 tem_write(tem_vt_state_t tem_arg, uchar_t *buf, ssize_t len, cred_t *credp) in tem_write() argument
201 tem_safe_check_first_time(tem, credp, CALLED_FROM_NORMAL); in tem_write()
202 tem_safe_terminal_emulate(tem, buf, len, credp, CALLED_FROM_NORMAL); in tem_write()
209 tem_internal_init(struct tem_vt_state *ptem, cred_t *credp, in tem_internal_init() argument
242 tem_safe_reset_display(ptem, credp, CALLED_FROM_NORMAL, in tem_internal_init()
271 tem_init(cred_t *credp) in tem_init() argument
301 tem_internal_init(ptem, credp, B_TRUE, B_FALSE); in tem_init()
342 tem_destroy(tem_vt_state_t tem_arg, cred_t *credp) in tem_destroy() argument
350 tem_safe_blank_screen(tem, credp, CALLED_FROM_NORMAL); in tem_destroy()
365 tems_failed(cred_t *credp, boolean_t finish_ioctl) in tems_failed() argument
[all …]
/titanic_44/usr/src/lib/pam_modules/ldap/
H A Dldap_utils.c98 ns_cred_t *credp; in authenticate() local
101 if ((credp = (ns_cred_t *)calloc(1, sizeof (ns_cred_t))) == NULL) in authenticate()
113 credp->cred.unix_cred.userID = strdup(binddn); in authenticate()
114 credp->cred.unix_cred.passwd = strdup(pwd); in authenticate()
115 if ((credp->cred.unix_cred.userID == NULL) || in authenticate()
116 (credp->cred.unix_cred.passwd == NULL)) { in authenticate()
127 credp->hostcertpath = *certpath; in authenticate()
166 credp->auth.type = authp->type; in authenticate()
167 credp->auth.tlstype = authp->tlstype; in authenticate()
168 credp->auth.saslmech = authp->saslmech; in authenticate()
[all …]
H A Dldap_authenticate.c60 ns_cred_t *credp = NULL; in pam_sm_authenticate() local
110 result = authenticate(&credp, user, password, NULL); in pam_sm_authenticate()
133 if (credp != NULL) in pam_sm_authenticate()
134 (void) __ns_ldap_freeCred(&credp); in pam_sm_authenticate()
/titanic_44/usr/src/cmd/fs.d/cachefs/cfsd/
H A Dcfsd_kmod.c588 dl_cred_t *credp, vattr_t *vattrp) in kmod_getattrfid() argument
598 dbug_precond(credp); in kmod_getattrfid()
603 copy_cred(&info.cg_cred, credp); in kmod_getattrfid()
613 kmod_print_cred(credp); in kmod_getattrfid()
642 const char *name, dl_cred_t *credp, vattr_t *vattrp, cfs_fid_t *filep) in kmod_getattrname() argument
654 dbug_precond(credp); in kmod_getattrname()
659 copy_cred(&info.cg_cred, credp); in kmod_getattrname()
670 kmod_print_cred(credp); in kmod_getattrname()
717 dl_cred_t *credp, in kmod_create() argument
733 dbug_precond(credp); in kmod_create()
[all …]
H A Dcfsd_kmod.h64 dl_cred_t *credp, cfs_vattr_t *vattrp);
66 const char *name, dl_cred_t *credp, cfs_vattr_t *vattrp, cfs_fid_t *filep);
69 int exclusive, int mode, dl_cred_t *credp, cfs_fid_t *newfidp,
72 cfs_fid_t *fidp, dl_cred_t *credp, timestruc_t *ctimep, timestruc_t *mtimep,
76 const cfs_cid_t *cidp, dl_cred_t *credp, timestruc_t *ctimep,
79 const cfs_cid_t *cidp, cfs_vattr_t *vattrp, int flags, dl_cred_t *credp,
83 const aclent_t *acl, dl_cred_t *credp, timestruc_t *ctimep,
86 const cfs_cid_t *cidp, const char *namep, const dl_cred_t *credp,
90 const dl_cred_t *credp, timestruc_t *ctimep);
93 const dl_cred_t *credp, cfs_fid_t *newfidp);
[all …]
/titanic_44/usr/src/uts/sun4/io/px/
H A Dpx_devctl.c48 static int px_open(dev_t *devp, int flags, int otyp, cred_t *credp);
49 static int px_close(dev_t dev, int flags, int otyp, cred_t *credp);
51 cred_t *credp, int *rvalp);
76 px_open(dev_t *devp, int flags, int otyp, cred_t *credp) in px_open() argument
107 if (rval = pcie_open(px_p->px_dip, devp, flags, otyp, credp)) { in px_open()
136 px_close(dev_t dev, int flags, int otyp, cred_t *credp) in px_close() argument
157 if (rval = pcie_close(px_p->px_dip, dev, flags, otyp, credp)) { in px_close()
170 px_ioctl(dev_t dev, int cmd, intptr_t arg, int mode, cred_t *credp, int *rvalp) in px_ioctl() argument
200 if (secpolicy_kmdb(credp)) in px_ioctl()
211 if (secpolicy_kmdb(credp)) in px_ioctl()
[all …]
/titanic_44/usr/src/uts/sun4u/io/pci/
H A Dpci_devctl.c48 static int pci_open(dev_t *devp, int flags, int otyp, cred_t *credp);
49 static int pci_close(dev_t dev, int flags, int otyp, cred_t *credp);
51 cred_t *credp, int *rvalp);
53 cred_t *credp, int *rvalp);
82 pci_open(dev_t *devp, int flags, int otyp, cred_t *credp) in pci_open() argument
124 if (rval = pcihp_ops->cb_open(devp, flags, otyp, credp)) { in pci_open()
139 pci_close(dev_t dev, int flags, int otyp, cred_t *credp) in pci_close() argument
155 if (rval = pcihp_ops->cb_close(dev, flags, otyp, credp)) { in pci_close()
168 cred_t *credp, int *rvalp) in pci_devctl_ioctl() argument
235 pci_ioctl(dev_t dev, int cmd, intptr_t arg, int mode, cred_t *credp, int *rvalp) in pci_ioctl() argument
[all …]
/titanic_44/usr/src/uts/common/io/usb/hubd/
H A Dhubd.c41 static int hubd_open(dev_t *devp, int flags, int otyp, cred_t *credp);
42 static int hubd_close(dev_t dev, int flag, int otyp, cred_t *credp);
44 cred_t *credp, int *rvalp);
182 hubd_open(dev_t *devp, int flags, int otyp, cred_t *credp) in hubd_open() argument
186 return (usba_hubdi_open(dip, devp, flags, otyp, credp)); in hubd_open()
191 hubd_close(dev_t dev, int flag, int otyp, cred_t *credp) in hubd_close() argument
195 return (usba_hubdi_close(dip, dev, flag, otyp, credp)); in hubd_close()
201 cred_t *credp, int *rvalp) in hubd_ioctl() argument
206 credp, rvalp)); in hubd_ioctl()
/titanic_44/usr/src/uts/common/exec/elf/
H A Delf_notes.c168 rlim64_t rlimit, cred_t *credp, core_content_t content) in write_elfnotes() argument
234 (caddr_t)&bigwad->psinfo, rlimit, credp); in write_elfnotes()
261 (caddr_t)&bigwad->pstatus, rlimit, credp); in write_elfnotes()
266 platform, rlimit, credp); in write_elfnotes()
276 (caddr_t)bigwad->auxv, rlimit, credp); in write_elfnotes()
286 (caddr_t)&bigwad->uts, rlimit, credp); in write_elfnotes()
299 (caddr_t)&bigwad->pcred, rlimit, credp); in write_elfnotes()
304 (caddr_t)&content, rlimit, credp); in write_elfnotes()
311 (caddr_t)&bigwad->ppriv, rlimit, credp); in write_elfnotes()
317 (caddr_t)prii, rlimit, credp); in write_elfnotes()
[all …]
H A Dold_notes.c104 rlim64_t rlimit, cred_t *credp) in write_old_elfnotes() argument
138 (caddr_t)&bigwad->psinfo, rlimit, credp); in write_old_elfnotes()
143 platform, rlimit, credp); in write_old_elfnotes()
153 (caddr_t)bigwad->auxv, rlimit, credp); in write_old_elfnotes()
193 rlimit, credp); in write_old_elfnotes()
201 rlimit, credp); in write_old_elfnotes()
220 rlimit, credp); in write_old_elfnotes()
230 xregsize, bigwad->xregs, rlimit, credp); in write_old_elfnotes()
H A Delf.c997 getelfhead(vnode_t *vp, cred_t *credp, Ehdr *ehdr, int *nshdrs, int *shstrndx, in getelfhead() argument
1009 (rlim64_t)0, credp, &resid)) != 0) in getelfhead()
1050 (rlim64_t)0, credp, &resid)) != 0) in getelfhead()
1071 getelfphdr(vnode_t *vp, cred_t *credp, const Ehdr *ehdr, int nphdrs, in getelfphdr() argument
1104 credp, &resid)) != 0) { in getelfphdr()
1123 getelfshdr(vnode_t *vp, cred_t *credp, const Ehdr *ehdr, in getelfshdr() argument
1155 credp, &resid)) != 0) { in getelfshdr()
1182 credp, &resid)) != 0) { in getelfshdr()
1389 rlim64_t rlimit, cred_t *credp) in elfnote() argument
1411 sizeof (note), rlimit, credp)) in elfnote()
[all …]
/titanic_44/usr/src/uts/common/os/
H A Dcore.c198 cred_t *credp = CRED(); in create_core_file() local
240 rootvp, startvp, credp); in create_core_file()
268 (VOP_GETATTR(vp, &vattr, 0, credp, NULL) != 0 || in create_core_file()
269 vattr.va_uid != crgetuid(credp))) { in create_core_file()
271 credp, NULL); in create_core_file()
329 cred_t *credp = CRED(); in do_core() local
362 (uid = crgetuid(credp)) != crgetruid(credp) || in do_core()
363 uid != crgetsuid(credp) || in do_core()
364 (gid = crgetgid(credp)) != crgetrgid(credp) || in do_core()
365 gid != crgetsgid(credp)) { in do_core()
[all …]
/titanic_44/usr/src/lib/libproc/common/
H A Dproc_set.c39 Psetcred(struct ps_prochandle *Pr, const prcred_t *credp) in Psetcred() argument
48 if (Pr == NULL || credp == NULL) in Psetcred()
51 ngrp = credp->pr_ngroups; in Psetcred()
56 (void) memcpy(&ctlp->cred, credp, ctlsize); in Psetcred()
/titanic_44/usr/src/uts/common/io/drm/
H A Ddrm_fops.c49 drm_find_file_by_proc(drm_device_t *dev, cred_t *credp) in drm_find_file_by_proc() argument
77 int otyp, cred_t *credp) in drm_open_helper() argument
91 priv = drm_find_file_by_proc(dev, credp); in drm_open_helper()
102 priv->uid = crgetsuid(credp); in drm_open_helper()
110 priv->authenticated = DRM_SUSER(credp); in drm_open_helper()
/titanic_44/usr/src/cmd/keyserv/
H A Dchkey_common.c587 ns_cred_t *credp; in update_ldap_attr() local
591 if ((credp = (ns_cred_t *)calloc(1, sizeof (ns_cred_t))) == NULL) { in update_ldap_attr()
601 credp->cred.unix_cred.userID = strdup(bindDN); in update_ldap_attr()
603 credp->cred.unix_cred.userID = strdup(dn); in update_ldap_attr()
605 if (credp->cred.unix_cred.userID == NULL) { in update_ldap_attr()
611 credp->cred.unix_cred.passwd = strdup(bindPasswd); in update_ldap_attr()
614 credp->cred.unix_cred.passwd = strdup(passwd); in update_ldap_attr()
624 credp->cred.unix_cred.passwd = ldap_pw; in update_ldap_attr()
628 if (credp->cred.unix_cred.passwd == NULL) { in update_ldap_attr()
639 credp->hostcertpath = *certpath; in update_ldap_attr()
[all …]
/titanic_44/usr/src/uts/common/io/audio/impl/
H A Daudio_ddi.c150 audio_open(dev_t *devp, int oflag, int otyp, cred_t *credp) in audio_open() argument
166 c->c_cred = credp; in audio_open()
193 audio_stropen(queue_t *rq, dev_t *devp, int oflag, int sflag, cred_t *credp) in audio_stropen() argument
223 c->c_cred = credp; in audio_stropen()
254 audio_strclose(queue_t *rq, int flag, cred_t *credp) in audio_strclose() argument
261 _NOTE(ARGUNUSED(credp)); in audio_strclose()
302 audio_close(dev_t dev, int flag, int otyp, cred_t *credp) in audio_close() argument
308 _NOTE(ARGUNUSED(credp)); in audio_close()
353 audio_write(dev_t dev, struct uio *uio, cred_t *credp) in audio_write() argument
362 rv = (c->c_write == NULL) ? ENXIO : c->c_write(c, uio, credp); in audio_write()
[all …]
/titanic_44/usr/src/uts/i86pc/i86hvm/io/
H A Dxdf_shell.c494 xdfs_open(dev_t *dev_p, int flag, int otyp, cred_t *credp) in xdfs_open() argument
510 return (xdfs_hvm_cb_ops->cb_open(dev_p, flag, otyp, credp)); in xdfs_open()
537 err = ldi_open_by_dev(&tgt_devt, OTYP_BLK, flag, credp, in xdfs_open()
554 err = ldi_open_by_dev(&tgt_devt, OTYP_BLK, flag, credp, in xdfs_open()
564 (void) ldi_close(lh_tmp, flag, credp); in xdfs_open()
576 xdfs_close(dev_t dev, int flag, int otyp, cred_t *credp) in xdfs_close() argument
593 return (xdfs_hvm_cb_ops->cb_close(dev, flag, otyp, credp)); in xdfs_close()
616 err = ldi_close(xsp->xdfss_tgt_lh[part], flag, credp); in xdfs_close()
709 xdfs_read(dev_t dev, struct uio *uio, cred_t *credp) in xdfs_read() argument
716 return (ldi_read(xsp->xdfss_tgt_lh[part], uio, credp)); in xdfs_read()
[all …]
/titanic_44/usr/src/uts/sun4/io/efcode/
H A Dfcode.c257 fc_open(dev_t *devp, int flag, int otyp, cred_t *credp) in fc_open() argument
421 fc_ioctl(dev_t dev, int cmd, intptr_t arg, int mode, cred_t *credp, int *rvalp) in fc_ioctl() argument
443 return (fc_get_parameters(dev, arg, mode, credp, rvalp)); in fc_ioctl()
450 return (fc_get_my_args(dev, arg, mode, credp, rvalp)); in fc_ioctl()
457 return (fc_run_priv(dev, arg, mode, credp, rvalp)); in fc_ioctl()
464 return (fc_validate(dev, arg, mode, credp, rvalp)); in fc_ioctl()
470 return (fc_get_fcode(dev, arg, mode, credp, rvalp)); in fc_ioctl()
477 return (fc_set_fcode_error(dev, arg, mode, credp, rvalp)); in fc_ioctl()
494 fc_get_parameters(dev_t dev, intptr_t arg, int mode, cred_t *credp, int *rvalp) in fc_get_parameters() argument
567 fc_get_my_args(dev_t dev, intptr_t arg, int mode, cred_t *credp, int *rvalp) in fc_get_my_args() argument
[all …]
/titanic_44/usr/src/uts/common/sys/1394/targets/dcam1394/
H A Ddcam.h140 int dcam_open(dev_t *devp, int flag, int otyp, cred_t *credp);
141 int dcam_close(dev_t dev, int flags, int otyp, cred_t *credp);
142 int dcam_read(dev_t dev, struct uio *uio, cred_t *credp);
143 int dcam_write(dev_t dev, struct uio *uio, cred_t *credp);
148 cred_t *credp, int *rvalp);
/titanic_44/usr/src/uts/common/sys/1394/adapters/
H A Dhci1394.h94 int hci1394_open(dev_t *devp, int flag, int otyp, cred_t *credp);
95 int hci1394_close(dev_t dev, int flag, int otyp, cred_t *credp);
101 int hci1394_ioctl(dev_t dev, int cmd, intptr_t arg, int mode, cred_t *credp,
/titanic_44/usr/src/uts/sun4u/io/
H A Depic.c301 epic_open(dev_t *devp, int flag, int otyp, cred_t *credp) in epic_open() argument
305 _NOTE(ARGUNUSED(credp)) in epic_open()
314 epic_close(dev_t dev, int flag, int otyp, cred_t *credp) in epic_close() argument
318 _NOTE(ARGUNUSED(credp)) in epic_close()
327 epic_ioctl(dev_t dev, int cmd, intptr_t arg, int mode, cred_t *credp, in epic_ioctl() argument
330 _NOTE(ARGUNUSED(credp)) in epic_ioctl()
/titanic_44/usr/src/uts/sun4u/io/i2c/clients/
H A Dltc1427.c144 ltc1427_open(dev_t *devp, int flags, int otyp, cred_t *credp) in ltc1427_open() argument
146 _NOTE(ARGUNUSED(credp)) in ltc1427_open()
191 ltc1427_close(dev_t dev, int flags, int otyp, cred_t *credp) in ltc1427_close() argument
193 _NOTE(ARGUNUSED(flags, otyp, credp)) in ltc1427_close()
221 cred_t *credp, int *rvalp) in ltc1427_ioctl() argument
223 _NOTE(ARGUNUSED(credp, rvalp)) in ltc1427_ioctl()
/titanic_44/usr/src/uts/common/sys/
H A Ddevops.h89 int (*cb_open)(dev_t *devp, int flag, int otyp, cred_t *credp);
90 int (*cb_close)(dev_t dev, int flag, int otyp, cred_t *credp);
94 int (*cb_read)(dev_t dev, struct uio *uiop, cred_t *credp);
95 int (*cb_write)(dev_t dev, struct uio *uiop, cred_t *credp);
97 cred_t *credp, int *rvalp);
103 unsigned int maxprot, unsigned int flags, cred_t *credp);
119 int (*cb_aread)(dev_t dev, struct aio_req *aio, cred_t *credp);
120 int (*cb_awrite)(dev_t dev, struct aio_req *aio, cred_t *credp);
/titanic_44/usr/src/uts/common/kmdb/
H A Dkdrv.c52 kdrv_open(dev_t *dev, int openflags, int otyp, cred_t *credp) in kdrv_open() argument
57 if (secpolicy_kmdb(credp) != 0) in kdrv_open()
65 kdrv_close(dev_t dev, int openflags, int otyp, cred_t *credp) in kdrv_close() argument
131 kdrv_ioctl(dev_t dev, int cmd, intptr_t arg, int flags, cred_t *credp, in kdrv_ioctl() argument

12345678910>>...12