Lines Matching defs:ucred
575 const struct ucred *ucred,
612 if (ucred) {
613 realuid = ucred->uid;
615 sprintf(pid, "_PID="PID_FMT, ucred->pid);
618 sprintf(uid, "_UID="UID_FMT, ucred->uid);
621 sprintf(gid, "_GID="GID_FMT, ucred->gid);
624 r = get_process_comm(ucred->pid, &t);
631 r = get_process_exe(ucred->pid, &t);
638 r = get_process_cmdline(ucred->pid, 0, false, &t);
645 r = get_process_capeff(ucred->pid, &t);
653 r = audit_session_from_pid(ucred->pid, &audit);
659 r = audit_loginuid_from_pid(ucred->pid, &loginuid);
666 r = cg_pid_get_path_shifted(ucred->pid, s->cgroup_root, &c);
727 if (getpidcon(ucred->pid, &con) >= 0) {
862 struct ucred ucred = {};
887 ucred.pid = getpid();
888 ucred.uid = getuid();
889 ucred.gid = getgid();
892 dispatch_message_real(s, iovec, n, ELEMENTSOF(iovec), &ucred, NULL, NULL, 0, NULL, LOG_INFO, 0);
906 dispatch_message_real(s, iovec, n, ELEMENTSOF(iovec), &ucred, NULL, NULL, 0, NULL, LOG_INFO, 0);
913 const struct ucred *ucred,
939 if (!ucred)
942 r = cg_pid_get_path_shifted(ucred->pid, s->cgroup_root, &path);
974 dispatch_message_real(s, iovec, n, m, ucred, tv, label, label_len, unit_id, priority, object_pid);
1154 struct ucred *ucred = NULL;
1174 uint8_t buf[CMSG_SPACE(sizeof(struct ucred)) +
1227 cmsg->cmsg_len == CMSG_LEN(sizeof(struct ucred)))
1228 ucred = (struct ucred*) CMSG_DATA(cmsg);
1249 server_process_syslog_message(s, strstrip(s->buffer), ucred, tv, label, label_len);
1255 server_process_native_message(s, s->buffer, n, ucred, tv, label, label_len);
1257 server_process_native_file(s, fds[0], ucred, tv, label, label_len);
1265 server_process_audit_message(s, s->buffer, n, ucred, &sa, msghdr.msg_namelen);