Lines Matching defs:session
28 #include "logind-session-device.h"
29 #include "logind-session.h"
274 return sd_bus_error_setf(error, SD_BUS_ERROR_ACCESS_DENIED, "Only owner of session may set idle hint");
349 return sd_bus_error_setf(error, SD_BUS_ERROR_ACCESS_DENIED, "Only owner of session may take control");
365 return sd_bus_error_setf(error, BUS_ERROR_NOT_IN_CONTROL, "You are not in control of this session");
387 return sd_bus_error_setf(error, BUS_ERROR_NOT_IN_CONTROL, "You are not in control of this session");
425 return sd_bus_error_setf(error, BUS_ERROR_NOT_IN_CONTROL, "You are not in control of this session");
451 return sd_bus_error_setf(error, BUS_ERROR_NOT_IN_CONTROL, "You are not in control of this session");
512 Session *session;
521 if (streq(path, "/org/freedesktop/login1/session/self")) {
538 session = hashmap_get(m->sessions, name);
543 p = startswith(path, "/org/freedesktop/login1/session/");
551 session = hashmap_get(m->sessions, e);
554 if (!session)
557 *found = session;
570 return strappend("/org/freedesktop/login1/session/", t);
577 Session *session;
585 HASHMAP_FOREACH(session, m->sessions, i) {
588 p = session_bus_path(session);
606 session = hashmap_get(m->sessions, name);
607 if (session) {
608 r = strv_extend(&l, "/org/freedesktop/login1/session/self");
675 Session *session;
681 HASHMAP_FOREACH(session, m->sessions, i) {
684 k = session_send_lock(session, lock);
699 /* This is called after the session scope and the user service
719 /* Update the session state file before we notify the client
727 log_debug("Sending reply about created session: "