Lines Matching refs:ucred
32 const struct ucred *ucred, in forward_syslog_iovec() argument
42 CMSG_BUFFER_TYPE(CMSG_SPACE(sizeof(struct ucred))) control; in forward_syslog_iovec()
60 if (ucred) { in forward_syslog_iovec()
68 cmsg->cmsg_len = CMSG_LEN(sizeof(struct ucred)); in forward_syslog_iovec()
69 memcpy(CMSG_DATA(cmsg), ucred, sizeof(struct ucred)); in forward_syslog_iovec()
86 if (ucred && IN_SET(errno, ESRCH, EPERM)) { in forward_syslog_iovec()
87 struct ucred u; in forward_syslog_iovec()
93 u = *ucred; in forward_syslog_iovec()
95 memcpy(CMSG_DATA(cmsg), &u, sizeof(struct ucred)); in forward_syslog_iovec()
110 …*s, int priority, const char *buffer, size_t buffer_len, const struct ucred *ucred, const struct t… in forward_syslog_raw() argument
120 forward_syslog_iovec(s, &iovec, 1, ucred, tv); in forward_syslog_raw()
123 …t priority, const char *identifier, const char *message, const struct ucred *ucred, const struct t… in server_forward_syslog() argument
153 if (ucred) { in server_forward_syslog()
155 (void) get_process_comm(ucred->pid, &ident_buf); in server_forward_syslog()
159 xsprintf(header_pid, "["PID_FMT"]: ", ucred->pid); in server_forward_syslog()
173 forward_syslog_iovec(s, iovec, n, ucred, tv); in server_forward_syslog()
311 const struct ucred *ucred, in server_process_syslog_message() argument
335 if (ucred && pid_is_valid(ucred->pid)) { in server_process_syslog_message()
336 r = client_context_get(s, ucred->pid, ucred, label, label_len, NULL, &context); in server_process_syslog_message()
338 …g_warning_errno(r, "Failed to retrieve credentials for PID " PID_FMT ", ignoring: %m", ucred->pid); in server_process_syslog_message()
384 forward_syslog_raw(s, priority, buf, raw_len, ucred, tv); in server_process_syslog_message()
387 server_forward_kmsg(s, priority, identifier, msg, ucred); in server_process_syslog_message()
390 server_forward_console(s, priority, identifier, msg, ucred); in server_process_syslog_message()
393 server_forward_wall(s, priority, identifier, msg, ucred); in server_process_syslog_message()