Home | History | Annotate | Download | only in init

Lines Matching refs:cr

99     const ucred* cr;
114 const char* source_context, const ucred& cr) {
122 audit_data.cr = &cr;
260 ucred cr = {.pid = 1, .uid = 0, .gid = 0};
262 result = HandlePropertySet(name, value, kInitContext.c_str(), cr, &error);
397 const std::string& source_context, const ucred& cr) {
411 if (CheckMacPerms(control_string_legacy, target_context_legacy, source_context.c_str(), cr)) {
422 return CheckMacPerms(control_string_full, target_context_full, source_context.c_str(), cr);
427 const std::string& source_context, const ucred& cr, std::string* error) {
434 if (!CheckControlPropertyPerms(name, value, source_context, cr)) {
440 HandleControlMessage(name.c_str() + 4, value, cr.pid);
448 if (!CheckMacPerms(name, target_context, source_context.c_str(), cr)) {
462 std::string cmdline_path = StringPrintf("proc/%d/cmdline", cr.pid);
470 LOG(INFO) << "Received sys.powerctl='" << value << "' from pid: " << cr.pid
489 ucred cr;
490 socklen_t cr_size = sizeof(cr);
491 if (getsockopt(s, SOL_SOCKET, SO_PEERCRED, &cr, &cr_size) < 0) {
497 SocketConnection socket(s, cr);
521 const auto& cr = socket.cred();
524 HandlePropertySet(prop_name, prop_value, socket.source_context(), cr, &error);
527 << "' from uid:" << cr.uid << " gid:" << cr.gid << " pid:" << cr.pid << ": "
544 const auto& cr = socket.cred();
546 uint32_t result = HandlePropertySet(name, value, socket.source_context(), cr, &error);
549 << "' from uid:" << cr.uid << " gid:" << cr.gid << " pid:" << cr.pid << ": "
636 ucred cr = {.pid = 1, .uid = 0, .gid = 0};
638 result = HandlePropertySet(key, value, context, cr, &error);
770 if (!d || !d->name || !d->cr) {
775 snprintf(buf, len, "property=%s pid=%d uid=%d gid=%d", d->name, d->cr->pid, d->cr->uid,
776 d->cr->gid);