Searched refs:cred (Results 1 – 4 of 4) sorted by relevance
/system/core/logd/ |
D | LogListener.cpp | 76 struct ucred* cred = nullptr; in HandleData() local 82 cred = (struct ucred*)CMSG_DATA(cmsg); in HandleData() 88 if (cred == nullptr) { in HandleData() 92 if (cred->uid == AID_LOGD) { in HandleData() 109 !clientHasLogCredentials(cred->uid, cred->gid, cred->pid))) { in HandleData() 119 logbuf_->Log(logId, header->realtime, cred->uid, cred->pid, header->tid, msg, in HandleData()
|
/system/core/libcutils/ |
D | uevent.cpp | 60 struct ucred* cred; in uevent_kernel_recv() local 74 cred = (struct ucred*)CMSG_DATA(cmsg); in uevent_kernel_recv() 75 *uid = cred->uid; in uevent_kernel_recv()
|
/system/memory/lmkd/ |
D | lmkd.cpp | 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 [all …]
|
/system/core/init/ |
D | property_service.cpp | 249 SocketConnection(int socket, const ucred& cred) : socket_(socket), cred_(cred) {} in SocketConnection() argument 306 const ucred& cred() { return cred_; } in cred() function in android::init::SocketConnection 564 const auto& cr = socket.cred(); in handle_property_set_fd() 593 const auto& cr = socket.cred(); in handle_property_set_fd()
|