Lines Matching defs:seat
126 static int get_seat_from_display(const char *display, const char **seat, uint32_t *vtnr) {
141 * the seat and the virtual terminal. Sounds ugly, is only
170 if (seat)
171 *seat = "seat0";
228 *seat = NULL,
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, &vtnr);
351 else if (streq(seat, "seat0"))
355 if (seat && !streq(seat, "seat0") && vtnr != 0) {
356 pam_syslog(handle, LOG_DEBUG, "Ignoring vtnr %"PRIu32" for %s which is not seat0", vtnr, seat);
379 "uid="UID_FMT" pid="PID_FMT" service=%s type=%s class=%s desktop=%s seat=%s vtnr=%"PRIu32" tty=%s display=%s remote=%s remote_user=%s remote_host=%s",
383 strempty(seat), vtnr, strempty(tty), strempty(display),
400 seat,
425 &seat,
435 "id=%s object_path=%s runtime_path=%s session_fd=%d seat=%s vtnr=%u original_uid=%u",
436 id, object_path, runtime_path, session_fd, seat, vtnr, original_uid);
462 if (!isempty(seat)) {
463 r = pam_misc_setenv(handle, "XDG_SEAT", seat, 0);
465 pam_syslog(handle, LOG_ERR, "Failed to set seat.");