summaryrefslogtreecommitdiff
path: root/daemon
Commit message (Collapse)AuthorAgeFilesLines
* gdm-manager: Don't assume ownership of seat_idAlessandro Bono2023-05-131-1/+1
| | | | | | | Since commit 89148f111d0ae91b5ba23776a6c57e917e5a13dc the seat id doesn't get duplicated. Don't free the returned string. Fixes: 6184c8a9a113abc963452dd3fdc91d1597385f56
* gdm-session-settings: Plug a leakAlessandro Bono2023-05-091-2/+5
| | | | | | Fallout from f0252728e9ef2a23b0d98a4fe2c697fdc673d254. The variable was used to free the object pointed by settings->user after replacing it.
* local-display-factory: Only check current VT for respawn on seat0msizanoen2023-05-081-1/+1
| | | | | | There's no reason that seat0 having the initial VT on foreground should trigger ensuring display on unrelated seats. Fix this by only checking for the current VT if the newly ended session belongs to seat0.
* local-display-factory: Do not ensure login screen when a background user ↵msizanoen12023-05-081-1/+10
| | | | session terminates
* local-display-factory: Ensure greeter sessions on non-primary seats are ↵msizanoen12023-05-081-2/+18
| | | | | | | | | respawned on termination Trigger ensuring a greeter session for a non-primary seat when it terminates and only looking for displays with state of GDM_DISPLAY_MANAGED when checking for duplicates in ensure_display_for_seat on non-primary seats.
* local-display-factory: Only ensure display for the session's seat on logout ↵msizanoen12023-05-081-5/+3
| | | | | | | | instead of all seats An user logging out from another seat shouldn't affect other users on other seats. Limit ensuring a greeter session to the seat that have just been logged out.
* local-display-factory: Search for greeter sessions from logind before ↵msizanoen12023-05-081-7/+7
| | | | | | | | | | | looking up the display from display store On non-primary seats, GDM will look up the display from display store and abort ensuring a display for seat. This causes the seat to have no active session when a user logs out, instead of the login screen. Fix this by searching for greeter sessions from logind before looking up the display from display store.
* gdm-session-worker: Do not set PAM_TTY on non-primary seatsmsizanoen12023-05-081-19/+24
| | | | | pam_systemd complains and refuse to create the login session when PAM_TTY or XDG_VTNR is configured on non-primary seats.
* daemon: Allow Wayland sessions on non-primary seatsmsizanoen12023-05-083-28/+15
|
* local-display-factory: Acquire seat name properlymsizanoen12023-05-081-6/+26
| | | | | | | | | systemd-logind escapes the seat name prior to exposing as a DBus object. As a result, seat names like "seat-name" may be escaped to "seat_x2dname" when exposed as a DBus object. Use DBus to acquire the seat name instead of using the last component of the object path.
* gdm-session-worker: Use g_auto*Alessandro Bono2023-04-281-100/+60
|
* gdm-session-worker: Plug a memory leakAlessandro Bono2023-04-281-1/+1
| | | | We didn't free the strings inside the array.
* gdm-sessoin-worker: Plug a memory leakAlessandro Bono2023-04-281-3/+2
| | | | | | gdm_dbus_worker_manager_call_choice_list_query_sync does not take ownership of choices_as_variant. We must free it. While at it, use g_autoptr.
* gdm-session-worker-job: Let GPtrArray deal with its contentAlessandro Bono2023-04-281-6/+2
|
* gdm-session-worker-job: Use g_auto*Alessandro Bono2023-04-281-27/+14
|
* gdm-session-settings: Remove unused variableAlessandro Bono2023-04-281-8/+0
|
* gdm-session-settings: Use g_auto*Alessandro Bono2023-04-281-4/+1
|
* gdm-session-record: Use g_auto*Alessandro Bono2023-04-281-4/+1
|
* gdm-session-linux-auditor: Use g_auto*Alessandro Bono2023-04-281-7/+3
|
* gdm-server: Remove empty branchAlessandro Bono2023-04-281-2/+1
|
* gdm-session: Plug memory leaksAlessandro Bono2023-04-281-1/+1
| | | | | The function is supposed to return const char *. Every caller is not freeing the returned string. Don't duplicate it.
* gdm-manager: Move variables to inner scopeAlessandro Bono2023-04-281-3/+3
|
* gdm-manager: Plug a memory leakAlessandro Bono2023-04-281-3/+2
| | | | session_type was not freed. While at it use g_autofree.
* gdm-manager: Plug a memory leakAlessandro Bono2023-04-281-1/+1
| | | | client_session_is is not freed. While at it, use g_autofree.
* gdm-server: Plug a memory leakAlessandro Bono2023-04-281-9/+3
| | | | | identifier was not freed. While at it use g_autofree and simplify how the identifier is created.
* gdm-local-display: Remove dead codeAlessandro Bono2023-04-281-4/+0
|
* gdm-local-display-factory: Remove unused variableAlessandro Bono2023-04-281-1/+0
|
* gdm-local-display-factory: Move variables to inner scopeAlessandro Bono2023-04-281-3/+4
|
* gdm-legacy-display: Use g_auto*Alessandro Bono2023-04-281-13/+6
|
* gdm-legacy-display: Plug a memory leakAlessandro Bono2023-04-281-7/+3
| | | | | display_name and seat_id were leaked. While at it, use g_autoptr() for launch_environment.
* gdm-launch-environment: Use g_auto*Alessandro Bono2023-04-281-36/+21
|
* gdm-launch-environment: Remove redudant checkAlessandro Bono2023-04-281-2/+0
| | | | | g_return_if_fail (GDM_IS_LAUNCH_ENVIRONMENT (object)) already checks it it is NULL.
* gdm-display: Use g_auto*Alessandro Bono2023-04-281-64/+25
|
* gdm-display: Plug a memory leakAlessandro Bono2023-04-281-2/+1
| | | | error was not freed in the second if branch. While at it use g_autoptr.
* gdm-display-access-file: Use g_auto*Alessandro Bono2023-04-281-42/+20
|
* gdm-dbus-util: Use g_auto*Alessandro Bono2023-04-281-27/+12
|
* session-worker: fix finalize criticals when user_settings is NULLMichael Catanzaro2023-03-271-1/+1
| | | | | | | This is a really classic case where we try to call g_object_unref() on an object that is expected to be NULL. Don't do that. Fixes #730
* added sighup handler for session-worker-maingangmo seong2023-03-031-0/+8
|
* session-worker-job: minor cleanupsIgnacio Casal Quinteiro2023-01-201-43/+25
|
* gdm-session: Add missing guards in public functionsAlessandro Bono2022-10-291-7/+40
|
* gdm-session-worker-job: Add missing guards in public functionsAlessandro Bono2022-10-291-0/+6
|
* gdm-session-settings: Add missing guards in public functionsAlessandro Bono2022-10-291-1/+3
|
* gdm-session-auditor: Add missing guards in public functionsAlessandro Bono2022-10-291-0/+12
|
* gdm-server: Add missing guards in public functionsAlessandro Bono2022-10-291-0/+4
|
* gdm-manager: Add missing guards in public functionsAlessandro Bono2022-10-291-0/+4
|
* gdm-launch-environment: Add missing guards in public functionsAlessandro Bono2022-10-291-0/+8
|
* gdm-display: Add missing guards in public functionsAlessandro Bono2022-10-291-0/+13
|
* gdm-display-store: Add missing guards in public functionsAlessandro Bono2022-10-291-8/+8
|
* gdm-display-factory: Add missing guards in public functionsAlessandro Bono2022-10-291-0/+2
|
* gdm-display-access-file: Add missing guards in public functionsAlessandro Bono2022-10-291-6/+10
|