Lines Matching refs:user
46 #include "user-util.h"
112 if (s->user) {
113 LIST_REMOVE(sessions_by_user, s->user->sessions, s);
115 if (s->user->display == s)
116 s->user->display = NULL;
153 assert(!s->user);
155 s->user = u;
166 if (!s->user)
180 assert(s->user);
191 s->user->uid,
192 s->user->name,
357 if (!s->user) {
359 User *user;
372 user = hashmap_get(s->manager->users, UID_TO_PTR(u));
373 if (!user) {
378 session_set_user(s, user);
475 assert(s->user);
512 assert(s->user);
523 description = strjoina("Session ", s->id, " of user ", s->user->name, NULL);
529 s->user->slice,
532 "systemd-user-sessions.service",
559 if (!s->user)
565 r = user_start(s->user);
577 "USER_ID=%s", s->user->name,
579 LOG_MESSAGE("New session %s of user %s.", s->id, s->user->name),
590 user_elect_display(s->user);
594 user_save(s->user);
600 user_send_changed(s->user, "Sessions", "Display", NULL);
621 if (force || manager_shall_kill(s->manager, s->user->name)) {
646 if (!s->user)
662 user_elect_display(s->user);
665 user_save(s->user);
675 if (!s->user)
682 "USER_ID=%s", s->user->name,
698 user_add_to_gc_queue(s->user);
713 user_save(s->user);
714 user_send_changed(s->user, "Sessions", "Display", NULL);
858 user_send_changed(s->user, "IdleHint", "IdleSinceHint", "IdleSinceHintMonotonic", NULL);
938 if (!s->user)
1018 r = fchown(vt, s->user->uid, -1);
1246 [SESSION_USER] = "user",