/systemd/src/login/ |
H A D | logind-device.h | 25 #include "logind-seat.h" 32 Seat *seat; member in struct:Device
|
H A D | logind-acl.h | 35 const char *seat, 49 const char *seat, 48 devnode_acl_all(struct udev *udev, const char *seat, bool flush, bool del, uid_t old_uid, bool add, uid_t new_uid) argument
|
H A D | logind-button.h | 33 char *seat; member in struct:Button
|
H A D | sysfs-show.c | 36 const char *seat, 43 assert(seat); 68 /* Explicitly also check for tag 'seat' here */ 69 if (!streq(seat, sn) || !udev_device_has_tag(d, "seat")) { 74 is_master = udev_device_has_tag(d, "master-of-seat"); 101 if (streq(seat, lookahead_sn) && udev_device_has_tag(lookahead_d, "seat")) 137 show_sysfs_one(udev, seat, item, sysfs, p, n_columns - 2); 144 int show_sysfs(const char *seat, cons argument 34 show_sysfs_one( struct udev *udev, const char *seat, struct udev_list_entry **item, const char *sub, const char *prefix, unsigned n_columns) argument [all...] |
H A D | logind-acl.c | 178 const char *seat, 202 if (isempty(seat)) 203 seat = "seat0"; 207 * could add the seat name as second match tag, but this would 235 if (!streq(seat, sn)) 247 log_debug("Found udev node %s for seat %s", n, seat); 267 log_debug("Found static node %s for seat %s", n, seat); 280 log_debug("Changing ACLs at %s for seat 177 devnode_acl_all(struct udev *udev, const char *seat, bool flush, bool del, uid_t old_uid, bool add, uid_t new_uid) argument [all...] |
H A D | logind-core.c | 200 seat_add_to_gc_queue(device->seat); 205 Seat *seat = NULL; local 213 log_warning("Device with invalid seat name %s found, ignoring.", sn); 217 seat = hashmap_get(m->seats, sn); 218 master = udev_device_has_tag(d, "master-of-seat"); 221 if (!master && !seat) 228 if (!seat) { 229 r = manager_add_seat(m, sn, &seat); 231 if (!device->seat) 238 device_attach(device, seat); [all...] |
H A D | logind-seat-dbus.c | 27 #include "logind-seat.h" 241 if (session->seat != s) 242 return sd_bus_error_setf(error, BUS_ERROR_SESSION_NOT_ON_SEAT, "Session %s not on seat %s", name, s->id); 325 Seat *seat; local 334 if (streq(path, "/org/freedesktop/login1/seat/self")) { 356 seat = session->seat; 361 p = startswith(path, "/org/freedesktop/login1/seat/"); 369 seat = hashmap_get(m->seats, e); 372 if (!seat) 395 Seat *seat; local [all...] |
H A D | logind-session.h | 93 Seat *seat; member in struct:Session
|
H A D | logind.c | 202 r = udev_enumerate_add_match_tag(e, "master-of-seat"); 595 r = sd_bus_add_fallback_vtable(m->bus, NULL, "/org/freedesktop/login1/seat", "org.freedesktop.login1.Seat", seat_vtable, seat_object_find, m); 597 return log_error_errno(r, "Failed to add seat object vtable: %m"); 599 r = sd_bus_add_node_enumerator(m->bus, NULL, "/org/freedesktop/login1/seat", seat_node_enumerator, m); 601 return log_error_errno(r, "Failed to add seat enumerator: %m"); 791 r = udev_monitor_filter_add_match_tag(m->udev_seat_monitor, "master-of-seat"); 879 Seat *seat; local 885 while ((seat = m->seat_gc_queue)) { 886 LIST_REMOVE(gc_queue, m->seat_gc_queue, seat); 887 seat 991 Seat *seat; local [all...] |
H A D | pam_systemd.c | 126 static int get_seat_from_display(const char *display, const char **seat, uint32_t *vtnr) { argument 141 * the seat and the virtual terminal. Sounds ugly, is only 170 if (seat) 171 *seat = "seat0"; 228 *seat = NULL, local 293 seat = pam_getenv(handle, "XDG_SEAT"); 294 if (isempty(seat)) 295 seat = getenv("XDG_SEAT"); 349 if (isempty(seat)) 350 get_seat_from_display(display, &seat, [all...] |
H A D | loginctl.c | 95 const char *id, *user, *seat, *object; local 126 while ((r = sd_bus_message_read(reply, "(susso)", &id, &uid, &user, &seat, &object)) > 0) { 127 printf("%10s %10u %-16s %-16s\n", id, (unsigned) uid, user, seat); 189 const char *seat, *object; local 219 while ((r = sd_bus_message_read(reply, "(so)", &seat, &object)) > 0) { 220 printf("%-16s\n", seat); 286 char *seat; member in struct:SessionStatusInfo 321 free(info->seat); 439 { "Seat", "(so)", prop_map_first_of_struct, offsetof(SessionStatusInfo, seat) }, 484 if (!isempty(i.seat)) { [all...] |
H A D | logind-session.c | 119 if (s->seat) { 120 if (s->seat->active == s) 121 s->seat->active = NULL; 122 if (s->seat->pending_switch == s) 123 s->seat->pending_switch = NULL; 125 seat_evict_position(s->seat, s); 126 LIST_REMOVE(sessions_by_seat, s->seat->sessions, s); 211 if (s->seat) 212 fprintf(f, "SEAT=%s\n", s->seat->id); 269 if (s->seat 314 *seat = NULL, local [all...] |
H A D | logind-dbus.c | 110 Seat *seat; local 124 seat = session->seat; 125 if (!seat) 126 return sd_bus_error_setf(error, BUS_ERROR_NO_SUCH_SEAT, "Session has no seat."); 128 seat = hashmap_get(m->seats, name); 129 if (!seat) 130 return sd_bus_error_setf(error, BUS_ERROR_NO_SUCH_SEAT, "No seat '%s' known", name); 133 *ret = seat; 397 Seat *seat; local 503 Seat *seat; local 582 Seat *seat = NULL; local 898 Seat *seat; local 1060 Seat *seat; local 1201 attach_device(Manager *m, const char *seat, const char *sysfs) argument 1268 const char *sysfs, *seat; local [all...] |
/systemd/src/udev/ |
H A D | udev-builtin-uaccess.c | 34 const char *path = NULL, *seat; local 45 seat = udev_device_get_property_value(dev, "ID_SEAT"); 46 if (!seat) 47 seat = "seat0"; 49 r = sd_seat_get_active(seat, NULL, &uid); 51 /* No active session on this seat */ 55 log_error("Failed to determine active user on seat %s.", seat);
|
/systemd/src/libsystemd/sd-login/ |
H A D | test-login.c | 37 char *seat, *type, *class, *display, *remote_user, *remote_host, *display_session, *cgroup; local 132 assert_se(sd_session_get_seat(session, &seat) >= 0); 133 printf("seat = %s\n", seat); 135 r = sd_seat_can_multi_session(seat); 139 r = sd_seat_can_tty(seat); 143 r = sd_seat_can_graphical(seat); 150 assert_se(sd_uid_is_on_seat(u, 0, seat) > 0); 152 k = sd_uid_is_on_seat(u, 1, seat); 156 assert_se(sd_seat_get_active(seat, [all...] |
H A D | sd-login.c | 319 static int file_of_seat(const char *seat, char **_p) { argument 325 if (seat) { 326 if (!filename_is_valid(seat)) 329 p = strappend("/run/systemd/seats/", seat); 348 _public_ int sd_uid_is_on_seat(uid_t uid, int require_active, const char *seat) { argument 356 r = file_of_seat(seat, &p); 568 _public_ int sd_session_get_seat(const char *session, char **seat) { argument 569 return session_get_string(session, "SEAT", seat); 638 _public_ int sd_seat_get_active(const char *seat, char **session, uid_t *uid) { argument 644 r = file_of_seat(seat, 677 sd_seat_get_sessions(const char *seat, char ***sessions, uid_t **uids, unsigned *n_uids) argument 751 seat_get_can(const char *seat, const char *variable) argument 774 sd_seat_can_multi_session(const char *seat) argument 778 sd_seat_can_tty(const char *seat) argument 782 sd_seat_can_graphical(const char *seat) argument [all...] |
/systemd/src/systemctl/ |
H A D | systemctl.c | 2980 _cleanup_free_ char *type = NULL, *tty = NULL, *seat = NULL, *user = NULL, *service = NULL, *class = NULL; local 2992 sd_session_get_seat(*s, &seat); 2996 log_warning("User %s is logged in on %s.", strna(user), isempty(tty) ? (isempty(seat) ? strna(service) : seat) : tty);
|