/systemd-251/rules.d/ |
D | 71-seat.rules.in | 12 TAG=="uaccess", SUBSYSTEM!="sound", TAG+="seat" 13 SUBSYSTEM=="sound", KERNEL=="card*", TAG+="seat" 14 SUBSYSTEM=="input", KERNEL=="input*", TAG+="seat" 15 SUBSYSTEM=="graphics", KERNEL=="fb[0-9]*", TAG+="seat" 17 # Assign keyboard and LCD backlights to the seat 18 SUBSYSTEM=="leds", TAG+="seat" 19 SUBSYSTEM=="backlight", TAG+="seat" 22 SUBSYSTEM=="graphics", KERNEL=="fb[0-9]", IMPORT{cmdline}="nomodeset", TAG+="master-of-seat" 24 # Allow any PCI graphics device to be a master and synthesize a seat if KMS 27 ENV{DRIVER}=="", IMPORT{cmdline}="nomodeset", TAG+="seat", TAG+="master-of-seat" [all …]
|
D | meson.build | 59 ['71-seat.rules', enable_logind], 60 ['73-seat-late.rules', enable_logind],
|
/systemd-251/src/libsystemd/sd-login/ |
D | test-login.c | 45 *seat = NULL, *session = NULL, in TEST() local 156 r = sd_session_get_seat(session, &seat); in TEST() 158 assert_se(seat); in TEST() 160 log_info("sd_session_get_seat(\"%s\") → \"%s\"", session, seat); in TEST() 164 r = sd_seat_can_multi_session(seat); in TEST() 167 log_info("sd_session_can_multi_seat(\"%s\") → %s", seat, yes_no(r)); in TEST() 169 r = sd_seat_can_tty(seat); in TEST() 171 log_info("sd_session_can_tty(\"%s\") → %s", seat, yes_no(r)); in TEST() 173 r = sd_seat_can_graphical(seat); in TEST() 175 log_info("sd_session_can_graphical(\"%s\") → %s", seat, yes_no(r)); in TEST() [all …]
|
D | sd-login.c | 306 static int file_of_seat(const char *seat, char **_p) { in file_of_seat() argument 312 if (seat) { in file_of_seat() 313 if (!filename_is_valid(seat)) in file_of_seat() 316 p = path_join("/run/systemd/seats", seat); in file_of_seat() 333 _public_ int sd_uid_is_on_seat(uid_t uid, int require_active, const char *seat) { in sd_uid_is_on_seat() argument 339 r = file_of_seat(seat, &filename); in sd_uid_is_on_seat() 545 _public_ int sd_session_get_seat(const char *session, char **seat) { in sd_session_get_seat() argument 546 return session_get_string(session, "SEAT", seat); in sd_session_get_seat() 613 _public_ int sd_seat_get_active(const char *seat, char **session, uid_t *uid) { in sd_seat_get_active() argument 619 r = file_of_seat(seat, &p); in sd_seat_get_active() [all …]
|
/systemd-251/src/login/ |
D | logind-session.c | 115 if (s->seat) { in session_free() 116 if (s->seat->active == s) in session_free() 117 s->seat->active = NULL; in session_free() 118 if (s->seat->pending_switch == s) in session_free() 119 s->seat->pending_switch = NULL; in session_free() 121 seat_evict_position(s->seat, s); in session_free() 122 LIST_REMOVE(sessions_by_seat, s->seat->sessions, s); in session_free() 257 if (s->seat) in session_save() 258 fprintf(f, "SEAT=%s\n", s->seat->id); in session_save() 317 if (s->seat && seat_has_vts(s->seat)) in session_save() [all …]
|
D | sysfs-show.c | 17 const char *seat, in show_sysfs_one() argument 29 assert(seat); in show_sysfs_one() 55 if (!streq(seat, sn) || in show_sysfs_one() 83 … if (streq(seat, lookahead_sn) && sd_device_has_current_tag(dev_list[lookahead], "seat") > 0) in show_sysfs_one() 115 r = show_sysfs_one(seat, dev_list, i_dev, n_dev, sysfs, p, in show_sysfs_one() 127 int show_sysfs(const char *seat, const char *prefix, unsigned n_columns, OutputFlags flags) { in show_sysfs() argument 138 if (isempty(seat)) in show_sysfs() 139 seat = "seat0"; in show_sysfs() 149 r = sd_device_enumerator_add_match_tag(e, streq(seat, "seat0") ? "seat" : seat); in show_sysfs() 160 show_sysfs_one(seat, dev_list, &i, n_dev, "/", prefix, n_columns, flags); in show_sysfs()
|
D | logind-device.c | 42 if (!d->seat) in device_detach() 48 s = d->seat; in device_detach() 49 LIST_REMOVE(devices, d->seat->devices, d); in device_detach() 50 d->seat = NULL; in device_detach() 75 if (d->seat == s) in device_attach() 78 if (d->seat) in device_attach() 81 d->seat = s; in device_attach()
|
D | logind-seat-dbus.c | 179 if (session->seat != s) in method_activate_session() 268 Seat *seat; in seat_object_find() local 287 r = manager_get_seat_from_creds(m, message, e, error, &seat); in seat_object_find() 295 *found = seat; in seat_object_find() 315 Seat *seat; in seat_node_enumerator() local 322 HASHMAP_FOREACH(seat, m->seats) { in seat_node_enumerator() 325 p = seat_bus_path(seat); in seat_node_enumerator() 348 if (session && session->seat) { in seat_node_enumerator() 365 may_auto = user && user->display && user->display->seat; in seat_node_enumerator()
|
D | pam_systemd.c | 254 static int get_seat_from_display(const char *display, const char **seat, uint32_t *vtnr) { in get_seat_from_display() argument 294 if (seat) in get_seat_from_display() 295 *seat = "seat0"; in get_seat_from_display() 683 *seat = NULL, in pam_sm_open_session() local 760 seat = getenv_harder(handle, "XDG_SEAT", NULL); in pam_sm_open_session() 804 if (isempty(seat)) in pam_sm_open_session() 805 (void) get_seat_from_display(display, &seat, &vtnr); in pam_sm_open_session() 806 else if (streq(seat, "seat0")) in pam_sm_open_session() 810 if (seat && !streq(seat, "seat0") && vtnr != 0) { in pam_sm_open_session() 812 … pam_syslog(handle, LOG_DEBUG, "Ignoring vtnr %"PRIu32" for %s which is not seat0", vtnr, seat); in pam_sm_open_session() [all …]
|
D | logind-session-dbus.c | 86 p = s->seat ? seat_bus_path(s->seat) : strdup("/"); in property_get_seat() 90 return sd_bus_message_append(reply, "(so)", s->seat ? s->seat->id : "", p); in property_get_seat() 530 const char *subsystem, *name, *seat; in method_set_brightness() local 548 if (!s->seat) in method_set_brightness() 550 if (s->seat->active != s) in method_set_brightness() 568 if (sd_device_get_property_value(d, "ID_SEAT", &seat) >= 0 && !streq_ptr(seat, s->seat->id)) in method_set_brightness() 569 …R_DEVICE, "Device %s:%s does not belong to your seat %s, refusing.", subsystem, name, s->seat->id); in method_set_brightness() 811 s->seat ? s->seat->id : "", in session_send_create_reply() 821 s->seat ? s->seat->id : "", in session_send_create_reply()
|
D | logind-dbus.c | 209 Seat *seat; in manager_get_seat_from_creds() local 223 seat = session->seat; in manager_get_seat_from_creds() 224 if (!seat) in manager_get_seat_from_creds() 227 seat = hashmap_get(m->seats, name); in manager_get_seat_from_creds() 228 if (!seat) in manager_get_seat_from_creds() 232 *ret = seat; in manager_get_seat_from_creds() 519 Seat *seat; in method_get_seat() local 529 r = manager_get_seat_from_creds(m, message, name, error, &seat); in method_get_seat() 533 p = seat_bus_path(seat); in method_get_seat() 568 session->seat ? session->seat->id : "", in method_list_sessions() [all …]
|
D | meson.build | 30 'logind-seat-dbus.c', 31 'logind-seat-dbus.h', 32 'logind-seat.c', 33 'logind-seat.h',
|
D | logind-core.c | 267 seat_add_to_gc_queue(device->seat); in manager_process_seat_device() 273 Seat *seat; in manager_process_seat_device() local 283 seat = hashmap_get(m->seats, sn); in manager_process_seat_device() 287 if (!master && !seat) in manager_process_seat_device() 298 if (!seat) { in manager_process_seat_device() 299 r = manager_add_seat(m, sn, &seat); in manager_process_seat_device() 301 if (!device->seat) in manager_process_seat_device() 308 device_attach(device, seat); in manager_process_seat_device() 309 seat_start(seat); in manager_process_seat_device()
|
D | logind.c | 902 Seat *seat; in manager_gc() local 908 while ((seat = m->seat_gc_queue)) { in manager_gc() 909 LIST_REMOVE(gc_queue, m->seat_gc_queue, seat); in manager_gc() 910 seat->in_gc_queue = false; in manager_gc() 912 if (seat_may_gc(seat, drop_not_started)) { in manager_gc() 913 seat_stop(seat, /* force = */ false); in manager_gc() 914 seat_free(seat); in manager_gc() 1027 Seat *seat; in manager_startup() local 1103 HASHMAP_FOREACH(seat, m->seats) in manager_startup() local 1104 (void) seat_start(seat); in manager_startup()
|
D | logind-session-device.c | 310 if (sd->device->seat != sd->session->seat) in session_device_verify() 327 if (!s->seat) in session_device_new() 419 seat_complete_switch(sd->session->seat); in session_device_complete_pause()
|
D | loginctl.c | 147 const char *id, *user, *seat, *object, *tty = NULL; in list_sessions() local 150 r = sd_bus_message_read(reply, "(susso)", &id, &uid, &user, &seat, &object); in list_sessions() 177 TABLE_STRING, seat, in list_sessions() 265 const char *seat; in list_seats() local 267 r = sd_bus_message_read(reply, "(so)", &seat, NULL); in list_seats() 273 r = table_add_cell(table, NULL, TABLE_STRING, seat); in list_seats() 331 const char *seat; member 447 … "(so)", prop_map_first_of_struct, offsetof(SessionStatusInfo, seat) }, in print_session_status_info() 489 if (!isempty(i.seat)) { in print_session_status_info() 490 printf("\t Seat: %s", i.seat); in print_session_status_info()
|
D | logind-user.c | 208 if (!i->seat) in user_save_internal() 216 fputs(i->seat->id, f); in user_save_internal() 250 if (!session_is_active(i) || !i->seat) in user_save_internal() 258 fputs(i->seat->id, f); in user_save_internal() 264 if (session_get_state(i) == SESSION_CLOSING || !i->seat) in user_save_internal() 272 fputs(i->seat->id, f); in user_save_internal()
|
/systemd-251/shell-completion/zsh/ |
D | _loginctl | 24 local seat description 25 loginctl --no-legend list-seats | while read -r seat description; do 26 _sys_all_seats+=( "$seat" ) 27 _sys_all_seats_descr+=( "${seat}:$description" ) 88 _sys_all_seats_descr=( "self:alias for the current seat" ) 97 _describe -t systemd-seats seat _sys_all_seats_descr _sys_all_seats "$@" 100 _wanted systemd-seats expl seat compadd "$@" -a _sys_all_seats 103 for fun in seat-status show-seat terminate-seat ; do 112 ':seat:_loginctl_seats' \ 141 "seat-status:Show seat status" [all …]
|
/systemd-251/src/systemd/ |
D | sd-login.h | 123 int sd_uid_is_on_seat(uid_t uid, int require_active, const char *seat); 149 int sd_session_get_seat(const char *session, char **seat); 179 int sd_seat_get_active(const char *seat, char **session, uid_t *uid); 184 const char *seat, 190 int sd_seat_can_multi_session(const char *seat) _sd_deprecated_; 193 int sd_seat_can_tty(const char *seat); 196 int sd_seat_can_graphical(const char *seat);
|
/systemd-251/src/shared/ |
D | devnode-acl.c | 138 int devnode_acl_all(const char *seat, in devnode_acl_all() argument 158 if (isempty(seat)) in devnode_acl_all() 159 seat = "seat0"; in devnode_acl_all() 180 if (!streq(seat, sn)) in devnode_acl_all() 187 log_device_debug(d, "Found udev node %s for seat %s", node, seat); in devnode_acl_all() 208 log_debug("Found static node %s for seat %s", n, seat); in devnode_acl_all() 220 n, seat, old_uid, new_uid, in devnode_acl_all()
|
D | devnode-acl.h | 14 int devnode_acl_all(const char *seat, 27 static inline int devnode_acl_all(const char *seat, in devnode_acl_all() argument
|
/systemd-251/src/udev/ |
D | udev-builtin-uaccess.c | 20 const char *path = NULL, *seat; in builtin_uaccess() local 37 if (sd_device_get_property_value(dev, "ID_SEAT", &seat) < 0) in builtin_uaccess() 38 seat = "seat0"; in builtin_uaccess() 40 r = sd_seat_get_active(seat, NULL, &uid); in builtin_uaccess() 46 … log_device_error_errno(dev, r, "Failed to determine active user on seat %s: %m", seat); in builtin_uaccess()
|
/systemd-251/src/systemctl/ |
D | systemctl-logind.c | 187 …_cleanup_free_ char *type = NULL, *tty = NULL, *seat = NULL, *user = NULL, *service = NULL, *class… in logind_check_inhibitors() local 199 sd_session_get_seat(*s, &seat); in logind_check_inhibitors() 203 …%s is logged in on %s.", strna(user), isempty(tty) ? (isempty(seat) ? strna(service) : seat) : tty… in logind_check_inhibitors()
|
/systemd-251/shell-completion/bash/ |
D | loginctl | 83 [SEATS]='seat-status show-seat terminate-seat'
|
/systemd-251/catalog/ |
D | systemd.ru.catalog.in | 123 # Subject: A new seat @SEAT_ID@ is now available 130 Новое рабочее место (seat) @SEAT_ID@ полностью настроено и готово к 133 # Subject: A seat @SEAT_ID@ has now been removed 140 Рабочее место (seat) @SEAT_ID@ было отключено.
|