Lines Matching refs:from
450 static int process_policy_unlocked(sd_bus *from, sd_bus *to, sd_bus_message *m, Policy *policy, const struct ucred *our_ucred, Set *owned_names) {
453 assert(from);
476 if (from->is_kernel) {
485 /* The message came from the kernel, and is sent to our legacy client. */
494 /* If the message came from another legacy
501 r = bus_get_name_creds_kdbus(from, m->sender, SD_BUS_CREDS_EUID|SD_BUS_CREDS_EGID, true, &sender_creds);
534 /* The message came from the legacy client, and is sent to kdbus. */
555 /* If we forward a signal from dbus-1 to kdbus, we have
596 static int process_policy(sd_bus *from, sd_bus *to, sd_bus_message *m, SharedPolicy *sp, const struct ucred *our_ucred, Set *owned_names) {
603 r = process_policy_unlocked(from, to, m, policy, our_ucred, owned_names);
704 /* We will change the sender of messages from the bus driver
705 * so that they originate from the bus driver. This is a
706 * speciality originating from dbus1, where the bus driver did
813 synthetic_reply_method_errnof(m, r, "Failed to forward message we got from destination: %m");
821 "Failed to forward message we got from destination: uid=" UID_FMT " gid=" GID_FMT" message=%s destination=%s path=%s interface=%s member=%s: %m",
894 synthetic_reply_method_errnof(m, r, "Failed to forward message we got from local: %m");
896 "Failed to forward message we got from local: uid=" UID_FMT " gid=" GID_FMT" message=%s destination=%s path=%s interface=%s member=%s: %m",
924 /* Read messages from bus, to pass them on to our client */
934 /* Read messages from our client, to pass them on to the bus */