Lines Matching refs:cred
711 struct ucred* cred = NULL; in ctrl_data_read() local
715 cred = (struct ucred*)CMSG_DATA(cmsg); in ctrl_data_read()
721 if (cred == NULL) { in ctrl_data_read()
728 memcpy(sender_cred, cred, sizeof(struct ucred)); in ctrl_data_read()
731 data_sock[dsock_idx].pid = cred->pid; in ctrl_data_read()
1029 static void cmd_procprio(LMKD_CTRL_PACKET packet, int field_count, struct ucred *cred) { in cmd_procprio() argument
1143 procp->reg_pid = cred->pid; in cmd_procprio()
1147 if (!claim_record(procp, cred->pid)) { in cmd_procprio()
1151 proc_get_name(cred->pid, buf, sizeof(buf)), cred->uid, cred->pid); in cmd_procprio()
1160 static void cmd_procremove(LMKD_CTRL_PACKET packet, struct ucred *cred) { in cmd_procremove() argument
1184 if (!claim_record(procp, cred->pid)) { in cmd_procremove()
1188 proc_get_name(cred->pid, buf, sizeof(buf)), cred->uid, cred->pid); in cmd_procremove()
1199 static void cmd_procpurge(struct ucred *cred) { in cmd_procpurge() argument
1214 if (claim_record(procp, cred->pid)) { in cmd_procpurge()
1367 struct ucred cred; in ctrl_command_handler() local
1375 len = ctrl_data_read(dsock_idx, (char *)packet, CTRL_PACKET_MAX_SIZE, &cred); in ctrl_command_handler()
1400 cmd_procprio(packet, nargs, &cred); in ctrl_command_handler()
1405 cmd_procremove(packet, &cred); in ctrl_command_handler()
1410 cmd_procpurge(&cred); in ctrl_command_handler()