Lines Matching refs:ucred
79 struct ucred ucred; member
266 else if (pid_is_valid(s->ucred.pid)) { in stdout_stream_log()
267 …r = client_context_acquire(s->server, s->ucred.pid, &s->ucred, s->label, strlen_ptr(s->label), s->… in stdout_stream_log()
284 …rver_forward_syslog(s->server, syslog_fixup_facility(priority), s->identifier, p, &s->ucred, NULL); in stdout_stream_log()
287 server_forward_kmsg(s->server, priority, s->identifier, p, &s->ucred); in stdout_stream_log()
290 server_forward_console(s->server, priority, s->identifier, p, &s->ucred); in stdout_stream_log()
293 server_forward_wall(s->server, priority, s->identifier, p, &s->ucred); in stdout_stream_log()
382 if (s->ucred.uid == 0 && in stdout_stream_line()
549 CMSG_BUFFER_TYPE(CMSG_SPACE(sizeof(struct ucred))) control; in stdout_stream_process()
552 struct ucred *ucred; in stdout_stream_process() local
607 ucred = CMSG_FIND_DATA(&msghdr, SOL_SOCKET, SCM_CREDENTIALS, struct ucred); in stdout_stream_process()
608 if (ucred && ucred->pid != s->ucred.pid) { in stdout_stream_process()
624 if (ucred) in stdout_stream_process()
625 s->ucred = *ucred; in stdout_stream_process()
662 .ucred = UCRED_INVALID, in stdout_stream_install()
667 r = getpeercred(fd, &stream->ucred); in stdout_stream_install()
727 struct ucred u = UCRED_INVALID; in stdout_stream_new()