Home
last modified time | relevance | path

Searched refs:session (Results 1 – 25 of 72) sorted by relevance

123

/systemd-251/src/login/
Dlogind-seat.c225 int seat_set_active(Seat *s, Session *session) { in seat_set_active() argument
229 assert(!session || session->seat == s); in seat_set_active()
231 if (session == s->active) in seat_set_active()
235 s->active = session; in seat_set_active()
244 if (session && session->started) { in seat_set_active()
245 session_send_changed(session, "Active", NULL); in seat_set_active()
246 session_device_resume_all(session); in seat_set_active()
249 if (!session || session->started) in seat_set_active()
254 if (session) { in seat_set_active()
255 session_save(session); in seat_set_active()
[all …]
Dlogind-session-device.c40 if (!sd->session->controller) in session_device_notify()
43 path = session_bus_path(sd->session); in session_device_notify()
48 sd->session->manager->bus, in session_device_notify()
55 r = sd_bus_message_set_destination(m, sd->session->controller); in session_device_notify()
89 return sd_bus_send(sd->session->manager->bus, m, NULL); in session_device_notify()
163 assert(session_is_active(sd->session)); in session_device_start()
295 sd->device = hashmap_get(sd->session->manager->devices, sp); in session_device_verify()
300 r = manager_process_seat_device(sd->session->manager, dev); in session_device_verify()
305 sd->device = hashmap_get(sd->session->manager->devices, sp); in session_device_verify()
310 if (sd->device->seat != sd->session->seat) in session_device_verify()
[all …]
Dlogind-dbus.c84 Session *session = NULL; in get_sender_session() local
115 session = user->display; in get_sender_session()
119 session = hashmap_get(m->sessions, name); in get_sender_session()
121 if (!session) in get_sender_session()
127 *ret = session; in get_sender_session()
138 Session *session; in manager_get_session_from_creds() local
148 session = hashmap_get(m->sessions, name); in manager_get_session_from_creds()
149 if (!session) in manager_get_session_from_creds()
152 *ret = session; in manager_get_session_from_creds()
216 Session *session; in manager_get_seat_from_creds() local
[all …]
Dsystemd-user.in13 session required pam_selinux.so close
14 session required pam_selinux.so nottys open
16 session required pam_loginuid.so
17 session optional pam_keyinit.so force revoke
19 -session optional pam_systemd_home.so
21 session optional pam_systemd.so
Dlogind-seat-dbus.c69 LIST_FOREACH(sessions_by_seat, session, s->sessions) { in property_get_sessions()
72 p = session_bus_path(session); in property_get_sessions()
76 r = sd_bus_message_append(reply, "(so)", session->id, p); in property_get_sessions()
165 Session *session; in method_activate_session() local
175 session = hashmap_get(s->manager->sessions, name); in method_activate_session()
176 if (!session) in method_activate_session()
179 if (session->seat != s) in method_activate_session()
188 r = session_activate(session); in method_activate_session()
345 Session *session; in seat_node_enumerator() local
347 session = hashmap_get(m->sessions, name); in seat_node_enumerator()
[all …]
Dmeson.build34 'logind-session-dbus.c',
35 'logind-session-dbus.h',
36 'logind-session-device.c',
37 'logind-session-device.h',
38 'logind-session.c',
39 'logind-session.h',
Dlogind-seat.h38 int seat_set_active(Seat *s, Session *session);
46 int seat_attach_session(Seat *s, Session *session);
48 void seat_evict_position(Seat *s, Session *session);
49 void seat_claim_position(Seat *s, Session *session, unsigned pos);
Dlogind.c96 Session *session; in manager_unref() local
106 while ((session = hashmap_first(m->sessions))) in manager_unref()
107 session_free(session); in manager_unref()
903 Session *session; in manager_gc() local
918 while ((session = m->session_gc_queue)) { in manager_gc()
919 LIST_REMOVE(gc_queue, m->session_gc_queue, session); in manager_gc()
920 session->in_gc_queue = false; in manager_gc()
923 if (session_may_gc(session, drop_not_started) && in manager_gc()
924 session_get_state(session) != SESSION_CLOSING) in manager_gc()
925 (void) session_stop(session, /* force = */ false); in manager_gc()
[all …]
Dlogind-session-dbus.c582 Session *session; in session_object_find() local
602 r = manager_get_session_from_creds(m, message, e, error, &session); in session_object_find()
610 *found = session; in session_object_find()
630 Session *session; in session_node_enumerator() local
637 HASHMAP_FOREACH(session, m->sessions) { in session_node_enumerator()
640 p = session_bus_path(session); in session_node_enumerator()
660 session = hashmap_get(m->sessions, name); in session_node_enumerator()
661 if (session) { in session_node_enumerator()
747 Session *session; in session_send_lock_all() local
752 HASHMAP_FOREACH(session, m->sessions) { in session_send_lock_all()
[all …]
/systemd-251/src/network/netdev/
Dl2tp-tunnel.c186 static int netdev_l2tp_create_message_session(NetDev *netdev, L2tpSession *session, sd_netlink_mess… in netdev_l2tp_create_message_session() argument
193 assert(session); in netdev_l2tp_create_message_session()
194 assert(session->tunnel); in netdev_l2tp_create_message_session()
200 r = sd_netlink_message_append_u32(m, L2TP_ATTR_CONN_ID, session->tunnel->tunnel_id); in netdev_l2tp_create_message_session()
204 … r = sd_netlink_message_append_u32(m, L2TP_ATTR_PEER_CONN_ID, session->tunnel->peer_tunnel_id); in netdev_l2tp_create_message_session()
208 r = sd_netlink_message_append_u32(m, L2TP_ATTR_SESSION_ID, session->session_id); in netdev_l2tp_create_message_session()
212 r = sd_netlink_message_append_u32(m, L2TP_ATTR_PEER_SESSION_ID, session->peer_session_id); in netdev_l2tp_create_message_session()
220 switch (session->l2tp_l2spec_type) { in netdev_l2tp_create_message_session()
240 r = sd_netlink_message_append_string(m, L2TP_ATTR_IFNAME, session->name); in netdev_l2tp_create_message_session()
359 static void l2tp_session_destroy_callback(L2tpSession *session) { in l2tp_session_destroy_callback() argument
[all …]
/systemd-251/src/systemd/
Dsd-login.h51 int sd_pid_get_session(pid_t pid, char **session);
85 int sd_peer_get_session(int fd, char **session);
119 int sd_uid_get_display(uid_t uid, char **session);
136 int sd_session_is_active(const char *session);
139 int sd_session_is_remote(const char *session);
143 int sd_session_get_state(const char *session, char **state);
146 int sd_session_get_uid(const char *session, uid_t *uid);
149 int sd_session_get_seat(const char *session, char **seat);
152 int sd_session_get_service(const char *session, char **service);
155 int sd_session_get_type(const char *session, char **type);
[all …]
/systemd-251/src/libsystemd/sd-login/
Dtest-login.c45 *seat = NULL, *session = NULL, in TEST() local
67 r = sd_pid_get_session(0, &session); in TEST()
68 log_info("sd_pid_get_session(0, …) → %s / \"%s\"", e(r), strnull(session)); in TEST()
114 if (session) { in TEST()
115 r = sd_session_is_active(session); in TEST()
122 log_info("sd_session_is_active(\"%s\") → %s", session, yes_no(r)); in TEST()
124 r = sd_session_is_remote(session); in TEST()
126 log_info("sd_session_is_remote(\"%s\") → %s", session, yes_no(r)); in TEST()
128 r = sd_session_get_state(session, &state); in TEST()
130 log_info("sd_session_get_state(\"%s\") → \"%s\"", session, state); in TEST()
[all …]
Dsd-login.c42 _public_ int sd_pid_get_session(pid_t pid, char **session) { in sd_pid_get_session() argument
46 assert_return(session, -EINVAL); in sd_pid_get_session()
48 r = cg_pid_get_session(pid, session); in sd_pid_get_session()
138 _public_ int sd_peer_get_session(int fd, char **session) { in sd_peer_get_session() argument
143 assert_return(session, -EINVAL); in sd_peer_get_session()
149 return cg_pid_get_session(ucred.pid, session); in sd_peer_get_session()
283 _public_ int sd_uid_get_display(uid_t uid, char **session) { in sd_uid_get_display() argument
287 assert_return(session, -EINVAL); in sd_uid_get_display()
301 *session = TAKE_PTR(s); in sd_uid_get_display()
412 static int file_of_session(const char *session, char **_p) { in file_of_session() argument
[all …]
/systemd-251/shell-completion/zsh/
D_loginctl6 local session description
7 loginctl --no-legend list-sessions | while read -r session description; do
8 _sys_all_sessions+=( "$session" )
9 _sys_all_sessions_descr+=( "${session}:$description" )
33 for fun in session-status show-session activate lock-session unlock-session terminate-session kill-
39 _sys_all_sessions_descr=( "self:alias for the current session" )
48 _describe -t systemd-sessions session _sys_all_sessions_descr _sys_all_sessions "$@"
51 _wanted systemd-sessions expl session compadd "$@" -a _sys_all_sessions
124 "session-status:Show session status"
125 "show-session:Show properties of one or more sessions"
[all …]
/systemd-251/src/resolve/
Dresolved-dnstls-gnutls.c92 stream->dnstls_data.session = TAKE_PTR(gs); in dnstls_stream_connect_tls()
101 if (stream->dnstls_data.session) in dnstls_stream_free()
102 gnutls_deinit(stream->dnstls_data.session); in dnstls_stream_free()
110 assert(stream->dnstls_data.session); in dnstls_stream_on_io()
113 r = gnutls_bye(stream->dnstls_data.session, GNUTLS_SHUT_RDWR); in dnstls_stream_on_io()
115 …stream->dnstls_events = gnutls_record_get_direction(stream->dnstls_data.session) == 1 ? EPOLLOUT :… in dnstls_stream_on_io()
125 stream->dnstls_data.handshake = gnutls_handshake(stream->dnstls_data.session); in dnstls_stream_on_io()
127 …stream->dnstls_events = gnutls_record_get_direction(stream->dnstls_data.session) == 1 ? EPOLLOUT :… in dnstls_stream_on_io()
146 assert(stream->dnstls_data.session); in dnstls_stream_shutdown()
150 … gnutls_session_get_data2(stream->dnstls_data.session, &stream->server->dnstls_data.session_data); in dnstls_stream_shutdown()
[all …]
/systemd-251/docs/
DDESKTOP_ENVIRONMENTS.md14 systemd only supports running one graphical session per user at a time.
17 The DBus session bus is shared between all the logins, and services that are
18 started must be implicitly assigned to the user's current graphical session.
20 In principle it is possible to run a single graphical session across multiple
23 to the existing session, allowing the graphical environment to present it
30 defines the `graphical-session.target` and `graphical-session-pre.target` to
32 slices `background`, `app` and `session`.
35 * `session.slice`: Contains only processes essential to run the user's graphical session
41 This could e.g. mean reserving memory to session processes,
43 or assigning different memory/CPU/IO priorities to ensure that the session
[all …]
/systemd-251/src/shared/
Dpkcs11-util.c180 CK_SESSION_HANDLE session, in pkcs11_token_login_by_pin() argument
192 rv = m->C_Login(session, CKU_USER, NULL, 0); in pkcs11_token_login_by_pin()
209 rv = m->C_Login(session, CKU_USER, (CK_UTF8CHAR*) pin, pin_size); in pkcs11_token_login_by_pin()
229 CK_SESSION_HANDLE session, in pkcs11_token_login() argument
261 r = pkcs11_token_login_by_pin(m, session, token_info, token_label, /* pin= */ NULL, 0); in pkcs11_token_login()
319 … r = pkcs11_token_login_by_pin(m, session, token_info, token_label, *i, strlen(*i)); in pkcs11_token_login()
349 CK_SESSION_HANDLE session, in pkcs11_token_find_x509_certificate() argument
434 rv = m->C_FindObjectsInit(session, attributes, n_attributes); in pkcs11_token_find_x509_certificate()
439 rv = m->C_FindObjects(session, objects, ELEMENTSOF(objects), &n_objects); in pkcs11_token_find_x509_certificate()
440 rv2 = m->C_FindObjectsFinal(session); in pkcs11_token_find_x509_certificate()
[all …]
Dpkcs11-util.h33 int pkcs11_token_login_by_pin(CK_FUNCTION_LIST *m, CK_SESSION_HANDLE session, const CK_TOKEN_INFO *…
34 int pkcs11_token_login(CK_FUNCTION_LIST *m, CK_SESSION_HANDLE session, CK_SLOT_ID slotid, const CK_…
36 int pkcs11_token_find_x509_certificate(CK_FUNCTION_LIST *m, CK_SESSION_HANDLE session, P11KitUri *s…
38 int pkcs11_token_read_x509_certificate(CK_FUNCTION_LIST *m, CK_SESSION_HANDLE session, CK_OBJECT_HA…
41 int pkcs11_token_find_private_key(CK_FUNCTION_LIST *m, CK_SESSION_HANDLE session, P11KitUri *search…
42 int pkcs11_token_decrypt_data(CK_FUNCTION_LIST *m, CK_SESSION_HANDLE session, CK_OBJECT_HANDLE obje…
44 int pkcs11_token_acquire_rng(CK_FUNCTION_LIST *m, CK_SESSION_HANDLE session);
46 typedef int (*pkcs11_find_token_callback_t)(CK_FUNCTION_LIST *m, CK_SESSION_HANDLE session, CK_SLOT…
68 CK_SESSION_HANDLE session,
Dtpm2-util.c42 TSS2_RC (*sym_Esys_TRSess_SetAttributes)(ESYS_CONTEXT *esysContext, ESYS_TR session, TPMA_SESSION f…
619 ESYS_TR session = ESYS_TR_NONE; in tpm2_make_encryption_session() local
640 &session); in tpm2_make_encryption_session()
648 rc = sym_Esys_TRSess_SetAttributes(c, session, sessionAttributes, 0xff); in tpm2_make_encryption_session()
656 *ret_session = session; in tpm2_make_encryption_session()
657 session = ESYS_TR_NONE; in tpm2_make_encryption_session()
660 session = flush_context_verbose(c, session); in tpm2_make_encryption_session()
686 ESYS_TR session = ESYS_TR_NONE; in tpm2_make_pcr_session() local
725 &session); in tpm2_make_pcr_session()
734 session, in tpm2_make_pcr_session()
[all …]
/systemd-251/src/journal-remote/
Dmicrohttpd-util.c170 static int verify_cert_authorized(gnutls_session_t session) { in verify_cert_authorized() argument
176 r = gnutls_certificate_verify_peers2(session, &status); in verify_cert_authorized()
180 type = gnutls_certificate_type_get(session); in verify_cert_authorized()
191 static int get_client_cert(gnutls_session_t session, gnutls_x509_crt_t *client_cert) { in get_client_cert() argument
197 assert(session); in get_client_cert()
200 pcert = gnutls_certificate_get_peers(session, &listsize); in get_client_cert()
251 gnutls_session_t session; in check_permissions() local
269 session = ci->tls_session; in check_permissions()
270 assert(session); in check_permissions()
272 r = get_client_cert(session, &client_cert); in check_permissions()
[all …]
/systemd-251/factory/etc/pam.d/
Dsystem-auth19 -session optional pam_keyinit.so revoke
20 -session optional pam_loginuid.so
21 -session optional pam_systemd_home.so
22 -session optional pam_systemd.so
23 session required pam_unix.so
/systemd-251/src/home/
Dhomework-pkcs11.c10 CK_SESSION_HANDLE session, in pkcs11_callback() argument
51 rv = m->C_Login(session, CKU_USER, NULL, 0); in pkcs11_callback()
68 rv = m->C_Login(session, CKU_USER, (CK_UTF8CHAR*) *i, strlen(*i)); in pkcs11_callback()
91 r = pkcs11_token_find_private_key(m, session, uri, &object); in pkcs11_callback()
95 …r = pkcs11_token_decrypt_data(m, session, object, data->encrypted_key->data, data->encrypted_key->… in pkcs11_callback()
/systemd-251/shell-completion/bash/
Dloginctl81 …[SESSIONS]='session-status show-session activate lock-session unlock-session terminate-session kil…
/systemd-251/units/user/
Dmeson.build10 'graphical-session-pre.target',
11 'graphical-session.target',
14 'session.slice',
/systemd-251/src/cryptsetup/cryptsetup-tokens/
Dluks2-pkcs11.c27 CK_SESSION_HANDLE session, in luks2_pkcs11_callback() argument
52 … r = pkcs11_token_login_by_pin(m, session, token_info, token_label, data->pin, data->pin_size); in luks2_pkcs11_callback()
82 r = pkcs11_token_find_private_key(m, session, uri, &object); in luks2_pkcs11_callback()
88 session, in luks2_pkcs11_callback()

123