Lines Matching defs:peercred
1121 ucred_t *peercred = NULL;
1124 struct ucred peercred;
1125 socklen_t so_len = sizeof(peercred);
1157 if (getpeerucred(fd, &peercred) < 0) {
1161 lcc->euid = ucred_geteuid(peercred);
1164 lcc->egid = ucred_getegid(peercred);
1167 lcc->pid = ucred_getpid(peercred);
1171 lcc->zoneid = ucred_getzoneid(peercred);
1175 lcc->nSuppGids = ucred_getgroups(peercred, &gids);
1189 ucred_free(peercred);
1192 if (getsockopt(fd, SOL_SOCKET, SO_PEERCRED, &peercred, &so_len) == -1) {
1196 lcc->euid = peercred.uid;
1197 lcc->egid = peercred.gid;
1198 lcc->pid = peercred.pid;