Home
last modified time | relevance | path

Searched refs:pcrp (Results 1 – 7 of 7) sorted by relevance

/titanic_41/usr/src/uts/common/os/
H A Dcred.c879 cred2prcred(const cred_t *cr, prcred_t *pcrp) in cred2prcred() argument
881 pcrp->pr_euid = cr->cr_uid; in cred2prcred()
882 pcrp->pr_ruid = cr->cr_ruid; in cred2prcred()
883 pcrp->pr_suid = cr->cr_suid; in cred2prcred()
884 pcrp->pr_egid = cr->cr_gid; in cred2prcred()
885 pcrp->pr_rgid = cr->cr_rgid; in cred2prcred()
886 pcrp->pr_sgid = cr->cr_sgid; in cred2prcred()
887 pcrp->pr_groups[0] = 0; /* in case ngroups == 0 */ in cred2prcred()
888 pcrp->pr_ngroups = cr->cr_grps == NULL ? 0 : cr->cr_grps->crg_ngroups; in cred2prcred()
890 if (pcrp->pr_ngroups != 0) in cred2prcred()
[all …]
/titanic_41/usr/src/uts/common/exec/elf/
H A Delf_notes.c79 prcred_t *pcrp; in setup_note_header() local
117 pcrp = kmem_alloc(size, KM_SLEEP); in setup_note_header()
118 prgetcred(p, pcrp); in setup_note_header()
119 if (pcrp->pr_ngroups != 0) { in setup_note_header()
121 sizeof (gid_t) * (pcrp->pr_ngroups - 1), sizeof (Word)); in setup_note_header()
126 kmem_free(pcrp, size); in setup_note_header()
/titanic_41/usr/src/lib/libproc/common/
H A DPcore.c138 Pcred_core(struct ps_prochandle *P, prcred_t *pcrp, int ngroups, void *data) in Pcred_core() argument
150 (void) memcpy(pcrp, core->core_cred, in Pcred_core()
802 prcred_t *pcrp; in note_cred() local
818 if ((pcrp = malloc(nbytes)) == NULL) in note_cred()
821 if (read(P->asfd, pcrp, nbytes) != nbytes) { in note_cred()
823 free(pcrp); in note_cred()
827 if (pcrp->pr_ngroups > ngroups) { in note_cred()
829 pcrp->pr_ngroups, ngroups); in note_cred()
830 pcrp->pr_ngroups = ngroups; in note_cred()
833 core->core_cred = pcrp; in note_cred()
H A DPcontrol.c173 Pcred_live(struct ps_prochandle *P, prcred_t *pcrp, int ngroups, void *data) in Pcred_live() argument
175 return (proc_get_cred(P->pid, pcrp, ngroups)); in Pcred_live()
1290 Pcred(struct ps_prochandle *P, prcred_t *pcrp, int ngroups) in Pcred() argument
1292 return (P->ops.pop_cred(P, pcrp, ngroups, P->data)); in Pcred()
H A Dllib-lproc51 int Pcred(struct ps_prochandle *Pr, prcred_t *pcrp, int ngroups);
/titanic_41/usr/src/uts/common/fs/proc/
H A Dprvnops.c945 prcred_t *pcrp; in pr_read_cred() local
955 pcrp = in pr_read_cred()
964 prgetcred(p, pcrp); in pr_read_cred()
968 if (pcrp->pr_ngroups > 1) in pr_read_cred()
969 count += sizeof (gid_t) * (pcrp->pr_ngroups - 1); in pr_read_cred()
970 error = pr_uioread(pcrp, count, uiop); in pr_read_cred()
972 kmem_free(pcrp, sizeof (prcred_t) + sizeof (gid_t) * (ngroups_max - 1)); in pr_read_cred()
H A Dprsubr.c4151 prgetcred(proc_t *p, prcred_t *pcrp) in prgetcred() argument
4154 cred2prcred(p->p_cred, pcrp); in prgetcred()