Home
last modified time | relevance | path

Searched refs:cred (Results 1 – 3 of 3) sorted by relevance

/system/core/logd/
DLogListener.cpp69 struct ucred* cred = nullptr; in onDataAvailable() local
75 cred = (struct ucred*)CMSG_DATA(cmsg); in onDataAvailable()
82 if (cred == nullptr) { in onDataAvailable()
83 cred = &fake_cred; in onDataAvailable()
84 cred->pid = 0; in onDataAvailable()
85 cred->uid = DEFAULT_OVERFLOWUID; in onDataAvailable()
88 if (cred->uid == AID_LOGD) { in onDataAvailable()
105 !clientHasLogCredentials(cred->uid, cred->gid, cred->pid))) { in onDataAvailable()
110 if (cred->pid == 0) { in onDataAvailable()
111 cred->pid = logbuf ? logbuf->tidToPid(header->tid) in onDataAvailable()
[all …]
/system/core/libcutils/
Duevent.cpp60 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/core/init/
Dproperty_service.cpp288 SocketConnection(int socket, const ucred& cred) : socket_(socket), cred_(cred) {} in SocketConnection() argument
334 const ucred& cred() { return cred_; } in cred() function in android::init::SocketConnection
556 const auto& cr = socket.cred(); in handle_property_set_fd()
579 const auto& cr = socket.cred(); in handle_property_set_fd()