Lines Matching refs:peercred
1175 ucred_t *peercred = NULL; in GetLocalClientCreds() local
1178 struct ucred peercred; in GetLocalClientCreds() local
1179 socklen_t so_len = sizeof(peercred); in GetLocalClientCreds()
1211 if (getpeerucred(fd, &peercred) < 0) { in GetLocalClientCreds()
1215 lcc->euid = ucred_geteuid(peercred); in GetLocalClientCreds()
1218 lcc->egid = ucred_getegid(peercred); in GetLocalClientCreds()
1221 lcc->pid = ucred_getpid(peercred); in GetLocalClientCreds()
1225 lcc->zoneid = ucred_getzoneid(peercred); in GetLocalClientCreds()
1229 lcc->nSuppGids = ucred_getgroups(peercred, &gids); in GetLocalClientCreds()
1246 ucred_free(peercred); in GetLocalClientCreds()
1249 if (getsockopt(fd, SOL_SOCKET, SO_PEERCRED, &peercred, &so_len) == -1) { in GetLocalClientCreds()
1253 lcc->euid = peercred.uid; in GetLocalClientCreds()
1254 lcc->egid = peercred.gid; in GetLocalClientCreds()
1255 lcc->pid = peercred.pid; in GetLocalClientCreds()