/base/startup/init_lite/interfaces/innerkits/fd_holder/ |
D | fd_holder_internal.c | 40 msghdr->msg_controllen += CMSG_SPACE(sizeof(struct ucred)); in BuildControlMessage() 72 struct ucred *ucred; in BuildControlMessage() local 75 cmsg->cmsg_len = CMSG_LEN(sizeof(struct ucred)); in BuildControlMessage() 76 ucred = (struct ucred*) CMSG_DATA(cmsg); in BuildControlMessage() 77 ucred->pid = getpid(); in BuildControlMessage() 78 ucred->uid = getuid(); in BuildControlMessage() 79 ucred->gid = getgid(); in BuildControlMessage() 88 CMSG_BUFFER_TYPE(CMSG_SPACE(sizeof(struct ucred)) + in ReceiveFds() 123 cmsg->cmsg_len == CMSG_LEN(sizeof(struct ucred))) { in ReceiveFds() 126 struct ucred *ucred = (struct ucred*)CMSG_DATA(cmsg); in ReceiveFds() local [all …]
|
/base/hiviewdfx/hilog/frameworks/native/ |
D | dgram_socket_server.cpp | 23 int DgramSocketServer::RecvPacket(std::vector<char>& buffer, struct ucred *cred) in RecvPacket() 35 std::array<char, CMSG_SPACE(sizeof(struct ucred))> control = {0}; in RecvPacket() 62 struct ucred *receivedUcred = (struct ucred*)CMSG_DATA(cmsg); in RecvPacket()
|
D | hilog_input_socket_server.cpp | 68 ucred cred; in ServingThread()
|
/base/security/selinux/interfaces/policycoreutils/src/ |
D | paraperm_checker.cpp | 45 const ucred *ucred; member 55 if (!msg->name || !msg->ucred) { in SelinuxAuditCallback() 59 …uf, len, len - 1, "parameter=%s pid=%d uid=%d gid=%d", msg->name, msg->ucred->pid, msg->ucred->uid, in SelinuxAuditCallback() 60 msg->ucred->gid) <= 0) { in SelinuxAuditCallback() 203 …Perm(const std::string ¶Name, const char *srcContext, const char *destContext, const ucred &uc) in CheckPerm() 213 msg.ucred = &uc; in CheckPerm() 296 ucred uc = {.pid = getpid(), .uid = getuid(), .gid = getgid()}; in ReadParamCheck() 297 msg.ucred = &uc; in ReadParamCheck() 314 int SetParamCheck(const char *paraName, struct ucred *uc) in SetParamCheck()
|
/base/hiviewdfx/faultloggerd/interfaces/innerkits/faultloggerd_client/ |
D | faultloggerd_socket.cpp | 186 bool RecvMsgCredFromSocket(int sockfd, struct ucred* pucred) in RecvMsgCredFromSocket() 196 char buf[CMSG_SPACE(sizeof(struct ucred))]; in RecvMsgCredFromSocket() 227 if (memcpy_s(pucred, sizeof(struct ucred), CMSG_DATA(cmsg), sizeof(struct ucred)) != 0) { in RecvMsgCredFromSocket()
|
/base/hiviewdfx/faultloggerd/interfaces/innerkits/faultloggerd_client/include/ |
D | faultloggerd_socket.h | 30 bool RecvMsgCredFromSocket(int sockfd, struct ucred* pucred);
|
/base/security/selinux/interfaces/policycoreutils/include/ |
D | selinux_parameter.h | 82 int SetParamCheck(const char *paraName, struct ucred *uc);
|
/base/hiviewdfx/hilog/frameworks/native/include/ |
D | dgram_socket_server.h | 28 int RecvPacket(std::vector<char>& buffer, struct ucred *cred = nullptr);
|
D | hilog_input_socket_server.h | 35 using HandlingFunc = std::function<void(const ucred& credential, std::vector<char>& data)>;
|
/base/hiviewdfx/hilog/services/hilogd/include/ |
D | log_collector.h | 32 void onDataRecv(const ucred& cred, std::vector<char>& data);
|
/base/startup/init_lite/ueventd/ |
D | ueventd_socket.c | 72 char credMsg[CMSG_SPACE(sizeof(struct ucred))]; in ReadUeventMessage()
|
/base/hiviewdfx/hilog/services/hilogd/ |
D | log_collector.cpp | 67 void LogCollector::onDataRecv(const ucred& cred, std::vector<char>& data) in onDataRecv()
|
D | main.cpp | 163 auto onDataReceive = [&hilogBuffer](const ucred& cred, std::vector<char>& data) { in HilogdEntry()
|
/base/security/selinux/interfaces/tools/param_check/ |
D | test.cpp | 128 static void TestSetPara(std::string ¶Name, struct ucred *uc) in TestSetPara() 229 struct ucred uc; in Test()
|
/base/startup/init_lite/services/param/manager/ |
D | param_manager.c | 244 static int (*setParamCheck)(const char *paraName, struct ucred *uc); in CheckParamPermissionWithSelinux() 260 …setParamCheck = (int (*)(const char *paraName, struct ucred *uc))dlsym(g_selinuxHandle, "SetParamC… in CheckParamPermissionWithSelinux() 266 struct ucred uc; in CheckParamPermissionWithSelinux()
|
/base/security/selinux/test/unittest/src/ |
D | selinux_unit_test.cpp | 822 struct ucred uc; 850 struct ucred uc;
|
/base/hiviewdfx/faultloggerd/services/ |
D | fault_logger_daemon.cpp | 220 struct ucred rcred; in SecurityCheck()
|
/base/startup/init_lite/services/param/service/ |
D | param_service.c | 346 struct ucred cr = {-1, -1, -1}; in HandleParamSet()
|