Home
last modified time | relevance | path

Searched refs:ucred (Results 1 – 18 of 18) sorted by relevance

/base/startup/init_lite/interfaces/innerkits/fd_holder/
Dfd_holder_internal.c40 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/
Ddgram_socket_server.cpp23 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()
Dhilog_input_socket_server.cpp68 ucred cred; in ServingThread()
/base/security/selinux/interfaces/policycoreutils/src/
Dparaperm_checker.cpp45 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 &paraName, 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/
Dfaultloggerd_socket.cpp186 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/
Dfaultloggerd_socket.h30 bool RecvMsgCredFromSocket(int sockfd, struct ucred* pucred);
/base/security/selinux/interfaces/policycoreutils/include/
Dselinux_parameter.h82 int SetParamCheck(const char *paraName, struct ucred *uc);
/base/hiviewdfx/hilog/frameworks/native/include/
Ddgram_socket_server.h28 int RecvPacket(std::vector<char>& buffer, struct ucred *cred = nullptr);
Dhilog_input_socket_server.h35 using HandlingFunc = std::function<void(const ucred& credential, std::vector<char>& data)>;
/base/hiviewdfx/hilog/services/hilogd/include/
Dlog_collector.h32 void onDataRecv(const ucred& cred, std::vector<char>& data);
/base/startup/init_lite/ueventd/
Dueventd_socket.c72 char credMsg[CMSG_SPACE(sizeof(struct ucred))]; in ReadUeventMessage()
/base/hiviewdfx/hilog/services/hilogd/
Dlog_collector.cpp67 void LogCollector::onDataRecv(const ucred& cred, std::vector<char>& data) in onDataRecv()
Dmain.cpp163 auto onDataReceive = [&hilogBuffer](const ucred& cred, std::vector<char>& data) { in HilogdEntry()
/base/security/selinux/interfaces/tools/param_check/
Dtest.cpp128 static void TestSetPara(std::string &paraName, struct ucred *uc) in TestSetPara()
229 struct ucred uc; in Test()
/base/startup/init_lite/services/param/manager/
Dparam_manager.c244 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/
Dselinux_unit_test.cpp822 struct ucred uc;
850 struct ucred uc;
/base/hiviewdfx/faultloggerd/services/
Dfault_logger_daemon.cpp220 struct ucred rcred; in SecurityCheck()
/base/startup/init_lite/services/param/service/
Dparam_service.c346 struct ucred cr = {-1, -1, -1}; in HandleParamSet()